From fb47073c91bfe94c644c50070fc1bb4fde1ae443 Mon Sep 17 00:00:00 2001 From: Bas van Dijk Date: Wed, 11 Sep 2024 23:47:11 +0200 Subject: [PATCH] fix: amount formatting of the Net row in the balancesheet HTML output The "Net" row in the HTML output of balancesheet formatted amounts using machineFmt which is inconsistent with all the other amounts in the balance sheet. This fixes that by formatting Net amounts using oneLineNoCostFmt. --- hledger/Hledger/Cli/CompoundBalanceCommand.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hledger/Hledger/Cli/CompoundBalanceCommand.hs b/hledger/Hledger/Cli/CompoundBalanceCommand.hs index 1e07d9b20..9839724fe 100644 --- a/hledger/Hledger/Cli/CompoundBalanceCommand.hs +++ b/hledger/Hledger/Cli/CompoundBalanceCommand.hs @@ -364,7 +364,7 @@ compoundBalanceReportAsHtml ropts cbr = totalrows = if no_total_ ropts || length subreports == 1 then [] else - multiBalanceRowAsCellBuilders machineFmt ropts colspans Total totalrow + multiBalanceRowAsCellBuilders oneLineNoCostFmt ropts colspans Total totalrow -- make a table of rendered lines of the report totals row & map (map (fmap wbToText)) & zipWith (:) (Spr.defaultCell "Net:" : repeat Spr.emptyCell)