From 1e66d3b2f6406814efa185bc62cea4252fd79d45 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Fri, 5 Jul 2019 21:45:44 +0800 Subject: [PATCH] [balsheet-pnl] cosmetic: improve maxindent calc 75ab45ac3 without 1+ some alignment is incorrect --- gnucash/report/standard-reports/balsheet-pnl.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnucash/report/standard-reports/balsheet-pnl.scm b/gnucash/report/standard-reports/balsheet-pnl.scm index 955b8127f1..5c2f7885e2 100644 --- a/gnucash/report/standard-reports/balsheet-pnl.scm +++ b/gnucash/report/standard-reports/balsheet-pnl.scm @@ -866,7 +866,8 @@ also show overall period profit & loss.")) (multicol-table-right (if enable-dual-columns? (gnc:make-html-table) multicol-table-left)) - (maxindent (apply max (cons 0 (map gnc-account-get-current-depth accounts))))) + (maxindent (1+ (apply max (cons 0 (map gnc-account-get-current-depth + accounts)))))) (gnc:html-document-set-title! doc (with-output-to-string