From 61e4034de56d1d4e29d0d25bf0a46d0639022d58 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 28 Jun 2015 14:14:56 -0700 Subject: [PATCH] Journal's Show instance reported one too many accounts --- hledger-lib/Hledger/Data/Journal.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hledger-lib/Hledger/Data/Journal.hs b/hledger-lib/Hledger/Data/Journal.hs index bf28637ba..f5ca55ac6 100644 --- a/hledger-lib/Hledger/Data/Journal.hs +++ b/hledger-lib/Hledger/Data/Journal.hs @@ -106,7 +106,7 @@ instance Show Journal where (show accounts) (show $ jcommoditystyles j) -- ++ (show $ journalTransactions l) - where accounts = flatten $ journalAccountNameTree j + where accounts = filter (/= "root") $ flatten $ journalAccountNameTree j -- showJournalDebug j = unlines [ -- show j