summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-09 17:38:05 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-09 17:38:05 -0400
commit6e6246c927ab0d39dfd65f20e51c3f1b036c8ea9 (patch)
tree20ad7233464142934da2c5d958edc8c0bdae65af /main.cc
parent05b2cc46fdf6accd2ecbdc3c1ce86829bc7bfa68 (diff)
downloadfork-ledger-6e6246c927ab0d39dfd65f20e51c3f1b036c8ea9.tar.gz
fork-ledger-6e6246c927ab0d39dfd65f20e51c3f1b036c8ea9.tar.bz2
fork-ledger-6e6246c927ab0d39dfd65f20e51c3f1b036c8ea9.zip
more fixes
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/main.cc b/main.cc
index 35dfd860..5d105cb3 100644
--- a/main.cc
+++ b/main.cc
@@ -651,10 +651,11 @@ int main(int argc, char * argv[])
walk_accounts(journal->master, formatter, predicate.get(),
xact_display_flags, show_subtotals, sort_order.get());
- std::string end_format = "--------------------\n";
- format.reset(end_format + f);
- format_account(std::cout, format,
- display_predicate.get())(journal->master);
+ if (format_account::disp_subaccounts_p(journal->master)) {
+ std::string end_format = "--------------------\n";
+ format.reset(end_format + f);
+ format.format_elements(std::cout, details_t(journal->master));
+ }
}
else if (command == "E") {
format_t format(first_line_format);