summaryrefslogtreecommitdiff
path: root/src/report.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/report.cc')
-rw-r--r--src/report.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/report.cc b/src/report.cc
index 1c654e75..d8f1c71f 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -1651,6 +1651,13 @@ expr_t::ptr_op_t report_t::lookup(const symbol_t::kind_t kind,
case 'b':
if (*(p + 1) == '\0' || is_eq(p, "bal") || is_eq(p, "balance")) {
+ // jww (2023-01-27): This next 'if' statement is a hack for historical
+ // purposes. Until this date, the balance report always used an amount
+ // width of 20. If the user has set the amount width, this should be
+ // used instead; but if they haven't, we need to use the old default
+ // in order for the tests to pass.
+ if (! HANDLED(amount_width_))
+ HANDLER(amount_width_).value = "20";
return FORMATTED_ACCOUNTS_REPORTER(balance_format_);
}
else if (is_eq(p, "budget")) {