diff --git a/Ledger/Utils.hs b/Ledger/Utils.hs index ed4a56b93..ab3510f67 100644 --- a/Ledger/Utils.hs +++ b/Ledger/Utils.hs @@ -121,7 +121,7 @@ treeany f t = (f $ root t) || (any (treeany f) $ branches t) -- treedropall -- do this repeatedly. showtree :: Show a => Tree a -> String -showtree = drawTree . treemap show +showtree = unlines . filter (containsRegex (mkRegex "[^ |]")) . lines . drawTree . treemap show -- debugging