fix blank line in register

This commit is contained in:
Simon Michael 2007-02-09 08:27:42 +00:00
parent cda849fbff
commit a0ad290570

View File

@ -45,21 +45,22 @@ showLedger l = "Ledger has\n"
showModifierEntries :: [ModifierEntry] -> String
showModifierEntries [] = ""
showModifierEntries es =
(show n) ++ " modifier " ++ (inflectEntries n) ++ ":\n" ++ unlines (map show es)
(show n) ++ " modifier " ++ (inflectEntries n) ++ ":\n" ++ concat (map show es)
where n = length es
showPeriodicEntries :: [PeriodicEntry] -> String
showPeriodicEntries [] = ""
showPeriodicEntries es =
(show n) ++ " periodic " ++ (inflectEntries n) ++ ":\n" ++ unlines (map show es)
(show n) ++ " periodic " ++ (inflectEntries n) ++ ":\n" ++ concat (map show es)
where n = length es
showEntries :: [Entry] -> String
showEntries [] = ""
showEntries es =
(show n) ++ " " ++ (inflectEntries n) ++ ":\n" ++ unlines (map show es)
(show n) ++ " " ++ (inflectEntries n) ++ ":\n" ++ concat (map show es)
where n = length es
inflectEntries :: Int -> String
inflectEntries 1 = "entry"
inflectEntries _ = "entries"