summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc5
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";