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.h | |
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.h')
-rw-r--r-- | src/report.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/report.h b/src/report.h index a711793d..ebaa3812 100644 --- a/src/report.h +++ b/src/report.h @@ -419,8 +419,8 @@ public: CTOR(report_t, balance_format_) { on(none, "%(ansify_if(" - " justify(scrub(display_total), int(amount_width)," - " int(amount_width) + int(prepend_width), true, color)," + " justify(scrub(display_total), max(int(amount_width),20)," + " max(int(amount_width),20) + int(prepend_width), true, color)," " bold if should_bold))" " %(!options.flat ? depth_spacer : \"\")" "%-(ansify_if(" @@ -428,7 +428,7 @@ public: " bold if should_bold))\n%/" "%$1\n%/" "%(prepend_width ? \" \" * int(prepend_width) : \"\")" - "%(\"-\" * int(amount_width))\n"); + "%(\"-\" * max(int(amount_width),20))\n"); }); OPTION(report_t, base); |