Skip to content

Commit

Permalink
Merge pull request #506 from pfsmorigo/budget_width
Browse files Browse the repository at this point in the history
Use amount_width variable for budget report
  • Loading branch information
jwiegley committed Jan 4, 2018
2 parents a140c2d + d0e80c0 commit 8fe509e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/report.h
Original file line number Diff line number Diff line change
Expand Up @@ -459,12 +459,12 @@ class report_t : public scope_t
(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)))) / "
Expand Down

0 comments on commit 8fe509e

Please sign in to comment.