From 4b0ba0f011edd2ef27bf2c3e79b038129f5448be Mon Sep 17 00:00:00 2001 From: Justin Le Date: Mon, 27 Mar 2017 13:13:43 -0700 Subject: [PATCH] odd behavior on -A was bcause of missing parentheses around if statements --- hledger/Hledger/Cli/BalanceView.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hledger/Hledger/Cli/BalanceView.hs b/hledger/Hledger/Cli/BalanceView.hs index 705aa2a6a..134688789 100644 --- a/hledger/Hledger/Cli/BalanceView.hs +++ b/hledger/Hledger/Cli/BalanceView.hs @@ -133,8 +133,8 @@ balanceviewReport BalanceView{..} CliOpts{reportopts_=ropts, rawopts_=raw} j = d mergedTabl +====+ row "Total" - (sumAmts ++ if row_total_ ropts' then [totsum] else [] - ++ if average_ ropts' then [totavg] else [] + (sumAmts ++ (if row_total_ ropts' then [totsum] else []) + ++ (if average_ ropts' then [totavg] else []) ) putStrLn bvtitle putStrLn $ renderBalanceReportTable totTabl