summaryrefslogtreecommitdiff
path: root/format.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-23 18:23:31 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-23 18:23:31 -0400
commit73e2abd1b2e2bacbd353999a7b3edd95a04112c4 (patch)
tree4ae4a6a5355913345877b593bcc530f001660b26 /format.cc
parent632a37034a4d3a3cc2ad2bb786709c2497c5c97f (diff)
downloadfork-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.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/format.cc b/format.cc
index add2151d..e529042f 100644
--- a/format.cc
+++ b/format.cc
@@ -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())