From 0f2c8542fc0570bc1a1a77d1b62d0128dd74d23b Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 16 Oct 2008 03:55:38 +0000 Subject: [PATCH] if we happen to be showing a not-yet-auto-balanced entry, hide the AUTO marker --- Ledger/Amount.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/Ledger/Amount.hs b/Ledger/Amount.hs index 1df13441b..9d772b4b9 100644 --- a/Ledger/Amount.hs +++ b/Ledger/Amount.hs @@ -84,6 +84,7 @@ groupAmountsByCommodity as = grouped -- display settings. showAmount :: Amount -> String showAmount (Amount (Commodity {symbol=sym,side=side,spaced=spaced,comma=comma,precision=p}) q) + | sym=="AUTO" = "" | side==L = printf "%s%s%s" sym space quantity | side==R = printf "%s%s%s" quantity space sym where