parsing: don't let trailing whitespace in a timelog description mess up layout
This commit is contained in:
parent
816083d82f
commit
3e9ad0ae13
@ -93,7 +93,7 @@ timelogentry = do
|
|||||||
many1 spacenonewline
|
many1 spacenonewline
|
||||||
datetime <- ledgerdatetime
|
datetime <- ledgerdatetime
|
||||||
comment <- optionMaybe (many1 spacenonewline >> liftM2 (++) getParentAccount restofline)
|
comment <- optionMaybe (many1 spacenonewline >> liftM2 (++) getParentAccount restofline)
|
||||||
return $ TimeLogEntry (read [code]) datetime (fromMaybe "" comment)
|
return $ TimeLogEntry (read [code]) datetime (maybe "" rstrip comment)
|
||||||
|
|
||||||
tests_Timelog = TestList [
|
tests_Timelog = TestList [
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user