mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-09 21:22:26 +03:00
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
|
||||
datetime <- ledgerdatetime
|
||||
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 [
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user