Skip to content

Commit

Permalink
imp:web: show zero amounts with their commodity symbol(s?) [#2140]
Browse files Browse the repository at this point in the history
This was mainly to make the sidebar more informative,
but also affects and hopefully helps, all amounts displayed elsewhere.
  • Loading branch information
simonmichael committed Mar 2, 2024
1 parent 7e3b205 commit bac7171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hledger-web/Hledger/Web/Widget/Common.hs
Expand Up @@ -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
Expand Down

0 comments on commit bac7171

Please sign in to comment.