diff --git a/hledger-lib/Hledger/Read/JournalReader.hs b/hledger-lib/Hledger/Read/JournalReader.hs index 3e223a5f9..249b33f4c 100644 --- a/hledger-lib/Hledger/Read/JournalReader.hs +++ b/hledger-lib/Hledger/Read/JournalReader.hs @@ -474,8 +474,8 @@ modifiertransactionp :: JournalParser m ModifierTransaction modifiertransactionp = do char '=' "modifier transaction" lift (skipMany spacenonewline) - querytxt <- T.pack <$> lift restofline -- TODO should not consume a same-line comment - (_cmt, _tags) <- lift transactioncommentp -- TODO apply these to modified txns ? + querytxt <- lift $ T.strip <$> descriptionp + (_comment, _tags) <- lift transactioncommentp -- TODO apply these to modified txns ? postings <- postingsp Nothing return $ ModifierTransaction querytxt postings