diff options
author | John Wiegley <johnw@newartisans.com> | 2008-09-17 21:09:15 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-09-17 21:09:15 -0400 |
commit | 1b083919c0ced1cbb64b46da58180b0c33123364 (patch) | |
tree | a39128321a9246d32598e21fff0cc020ba7f0760 /src/main.cc | |
parent | 24e64c202ea71ad73a860f16c6ba4b9288768fef (diff) | |
download | fork-ledger-1b083919c0ced1cbb64b46da58180b0c33123364.tar.gz fork-ledger-1b083919c0ced1cbb64b46da58180b0c33123364.tar.bz2 fork-ledger-1b083919c0ced1cbb64b46da58180b0c33123364.zip |
Restored the 'print' command.
Diffstat (limited to 'src/main.cc')
-rw-r--r-- | src/main.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc index a4e78ab7..9b03afd2 100644 --- a/src/main.cc +++ b/src/main.cc @@ -407,7 +407,10 @@ namespace ledger { } else if (verb == "print" || verb == "p") { verb = "print"; - command = reporter<>(new format_xacts(report, session.print_format)); + command = reporter<>(new format_xacts(report, + report.format_string.empty() ? + session.print_format : + report.format_string)); } else if (verb == "balance" || verb == "bal" || verb == "b") { verb = "balance"; |