diff options
author | John Wiegley <johnw@newartisans.com> | 2023-01-27 13:30:52 -0800 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2023-01-27 15:39:20 -0800 |
commit | 33842c1b60ad1a94e9bc2b56d2a0352c656135b4 (patch) | |
tree | b23b6e9f6cc90f988c1c6a0d78684306476ec641 /src/report.cc | |
parent | 7ef502ba00987928d5c708bf8e157bac710bb688 (diff) | |
download | fork-ledger-33842c1b60ad1a94e9bc2b56d2a0352c656135b4.tar.gz fork-ledger-33842c1b60ad1a94e9bc2b56d2a0352c656135b4.tar.bz2 fork-ledger-33842c1b60ad1a94e9bc2b56d2a0352c656135b4.zip |
If the amount-width has not been set, use the old default of 20
Diffstat (limited to 'src/report.cc')
-rw-r--r-- | src/report.cc | 7 |
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")) { |