diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-23 18:23:31 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-23 18:23:31 -0400 |
commit | 73e2abd1b2e2bacbd353999a7b3edd95a04112c4 (patch) | |
tree | 4ae4a6a5355913345877b593bcc530f001660b26 /format.cc | |
parent | 632a37034a4d3a3cc2ad2bb786709c2497c5c97f (diff) | |
download | fork-ledger-73e2abd1b2e2bacbd353999a7b3edd95a04112c4.tar.gz fork-ledger-73e2abd1b2e2bacbd353999a7b3edd95a04112c4.tar.bz2 fork-ledger-73e2abd1b2e2bacbd353999a7b3edd95a04112c4.zip |
a little cleanup; reversed the meaning of -z and -p (to be more mnemonic)
Diffstat (limited to 'format.cc')
-rw-r--r-- | format.cc | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -223,7 +223,7 @@ void format_t::format_elements(std::ostream& out, out << *((unsigned int *) value.data); break; case value_t::AMOUNT: - out << std::string(*((amount_t *) value.data)); + out << *((amount_t *) value.data); break; case value_t::BALANCE: ((balance_t *) value.data)->write(out, elem->min_width, @@ -337,8 +337,9 @@ void format_t::format_elements(std::ostream& out, } if (! use_disp) - disp = std::string(details.xact->amount); - out << disp; + out << details.xact->amount; + else + out << disp; // jww (2004-07-31): this should be handled differently if (! details.xact->note.empty()) |