From 1b083919c0ced1cbb64b46da58180b0c33123364 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 17 Sep 2008 21:09:15 -0400 Subject: Restored the 'print' command. --- src/main.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main.cc') 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"; -- cgit v1.2.3