summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2018-01-03 23:11:54 -0800
committerGitHub <noreply@github.com>2018-01-03 23:11:54 -0800
commit8fe509e9e1d3a68fe785299f7484354c34d8ecae (patch)
tree8f9d8d367b854da5d723aeeebc3d728581010f0f
parenta140c2d7432778678ad7b4feed2fec7329b04815 (diff)
parentd0e80c02fb2328cb89efe41c400af68e322d9e80 (diff)
downloadfork-ledger-8fe509e9e1d3a68fe785299f7484354c34d8ecae.tar.gz
fork-ledger-8fe509e9e1d3a68fe785299f7484354c34d8ecae.tar.bz2
fork-ledger-8fe509e9e1d3a68fe785299f7484354c34d8ecae.zip
Merge pull request #506 from pfsmorigo/budget_width
Use amount_width variable for budget report
-rw-r--r--src/report.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/report.h b/src/report.h
index b625d335..8a7efddd 100644
--- a/src/report.h
+++ b/src/report.h
@@ -459,12 +459,12 @@ public:
(report_t, budget_format_,
CTOR(report_t, budget_format_) {
on(none,
- "%(justify(scrub(get_at(display_total, 0)), 12, -1, true, color))"
- " %(justify(-scrub(get_at(display_total, 1)), 12, "
- " 12 + 1 + 12, true, color))"
+ "%(justify(scrub(get_at(display_total, 0)), int(amount_width), -1, true, color))"
+ " %(justify(-scrub(get_at(display_total, 1)), int(amount_width), "
+ " int(amount_width) + 1 + int(amount_width), true, color))"
" %(justify(scrub((get_at(display_total, 1) || 0) + "
- " (get_at(display_total, 0) || 0)), 12, "
- " 12 + 1 + 12 + 1 + 12, true, color))"
+ " (get_at(display_total, 0) || 0)), int(amount_width), "
+ " int(amount_width) + 1 + int(amount_width) + 1 + int(amount_width), true, color))"
" %(ansify_if("
" justify((get_at(display_total, 1) ? "
" (100% * quantity(scrub(get_at(display_total, 0)))) / "