From bac71714548c3b05964bc4edfcd2922fab7db05d Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 1 Mar 2024 22:50:26 -1000 Subject: [PATCH] imp:web: show zero amounts with their commodity symbol(s?) [#2140] This was mainly to make the sidebar more informative, but also affects and hopefully helps, all amounts displayed elsewhere. --- hledger-web/Hledger/Web/Widget/Common.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hledger-web/Hledger/Web/Widget/Common.hs b/hledger-web/Hledger/Web/Widget/Common.hs index 01ca3075824..a71ffb664a2 100644 --- a/hledger-web/Hledger/Web/Widget/Common.hs +++ b/hledger-web/Hledger/Web/Widget/Common.hs @@ -95,7 +95,7 @@ accountOnlyQuery = ("inacctonly:" <>) . quoteIfSpaced mixedAmountAsHtml :: MixedAmount -> HtmlUrl a mixedAmountAsHtml b _ = - for_ (lines (showMixedAmountWithoutCost False b)) $ \t -> do + for_ (lines (showMixedAmountWith noCostFmt{displayZeroCommodity=True} b)) $ \t -> do H.span ! A.class_ c $ toHtml t H.br where