From d0e80c02fb2328cb89efe41c400af68e322d9e80 Mon Sep 17 00:00:00 2001 From: Paulo Flabiano Smorigo Date: Wed, 3 Jan 2018 18:44:43 -0200 Subject: Use amount_width variable for budget report Instead of using a "magic" value (12), use the proper variable to set the width. --- src/report.h | 10 +++++----- 1 file 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)))) / " -- cgit v1.2.3