summaryrefslogtreecommitdiff
path: root/src/report.h
diff options
context:
space:
mode:
authorVladimir Parfinenko <vladimir.parfinenko@gmail.com>2021-07-06 08:40:21 +0700
committerJohn Wiegley <johnw@newartisans.com>2022-02-03 09:08:11 -0800
commit7baa0efd71896711e563feb957926433f529d892 (patch)
tree3ef39263e7baa50b87a164a7f6b7baca9b837191 /src/report.h
parent1a70b33b4f8b6f8d4844b1b30dde568ae311d0ac (diff)
downloadfork-ledger-7baa0efd71896711e563feb957926433f529d892.tar.gz
fork-ledger-7baa0efd71896711e563feb957926433f529d892.tar.bz2
fork-ledger-7baa0efd71896711e563feb957926433f529d892.zip
Use amount_width for balance report
Diffstat (limited to 'src/report.h')
-rw-r--r--src/report.h6
1 files changed, 3 insertions, 3 deletions
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);