diff --git a/hledger-web/Hledger/Web/Handlers.hs b/hledger-web/Hledger/Web/Handlers.hs index b44356f60..39de3b07e 100644 --- a/hledger-web/Hledger/Web/Handlers.hs +++ b/hledger-web/Hledger/Web/Handlers.hs @@ -471,7 +471,7 @@ numberTransactionsReportItems items = number 0 nulldate items (prevdy,prevdm,_) = toGregorian prevd mixedAmountAsHtml :: MixedAmount -> Html -mixedAmountAsHtml b = preEscapedString $ addclass $ intercalate "
" $ lines $ show b +mixedAmountAsHtml b = preEscapedString $ addclass $ intercalate "
" $ lines $ showMixedAmount b where addclass = printf "%s" (c :: String) c = case isNegativeMixedAmount b of Just True -> "negative amount" _ -> "positive amount"