From 7baa0efd71896711e563feb957926433f529d892 Mon Sep 17 00:00:00 2001 From: Vladimir Parfinenko Date: Tue, 6 Jul 2021 08:40:21 +0700 Subject: Use amount_width for balance report --- src/report.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/report.h') diff --git a/src/report.h b/src/report.h index 95d87e1e..280481df 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), 20," - " 20 + int(prepend_width), true, color)," + " justify(scrub(display_total), int(amount_width)," + " int(amount_width) + 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) : \"\")" - "--------------------\n"); + "%(\"-\" * int(amount_width))\n"); }); OPTION(report_t, base); -- cgit v1.2.3