fix blank line in register
This commit is contained in:
parent
cda849fbff
commit
a0ad290570
7
Types.hs
7
Types.hs
@ -45,21 +45,22 @@ showLedger l = "Ledger has\n"
|
|||||||
showModifierEntries :: [ModifierEntry] -> String
|
showModifierEntries :: [ModifierEntry] -> String
|
||||||
showModifierEntries [] = ""
|
showModifierEntries [] = ""
|
||||||
showModifierEntries es =
|
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
|
where n = length es
|
||||||
|
|
||||||
showPeriodicEntries :: [PeriodicEntry] -> String
|
showPeriodicEntries :: [PeriodicEntry] -> String
|
||||||
showPeriodicEntries [] = ""
|
showPeriodicEntries [] = ""
|
||||||
showPeriodicEntries es =
|
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
|
where n = length es
|
||||||
|
|
||||||
showEntries :: [Entry] -> String
|
showEntries :: [Entry] -> String
|
||||||
showEntries [] = ""
|
showEntries [] = ""
|
||||||
showEntries es =
|
showEntries es =
|
||||||
(show n) ++ " " ++ (inflectEntries n) ++ ":\n" ++ unlines (map show es)
|
(show n) ++ " " ++ (inflectEntries n) ++ ":\n" ++ concat (map show es)
|
||||||
where n = length es
|
where n = length es
|
||||||
|
|
||||||
|
inflectEntries :: Int -> String
|
||||||
inflectEntries 1 = "entry"
|
inflectEntries 1 = "entry"
|
||||||
inflectEntries _ = "entries"
|
inflectEntries _ = "entries"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user