parsing: allow transactions with empty descriptions

This commit is contained in:
Simon Michael 2010-03-10 01:25:02 +00:00
parent c8cd88ba5f
commit 7b026ef6f4

View File

@ -394,7 +394,7 @@ ledgerTransaction = do
edate <- try (ledgereffectivedate date <?> "effective date") <|> return Nothing
status <- ledgerstatus
code <- ledgercode
description <- many1 spacenonewline >> liftM rstrip (many1 (noneOf ";\n") <?> "description")
description <- many1 spacenonewline >> liftM rstrip (many (noneOf ";\n") <?> "description")
comment <- ledgercomment <|> return ""
restofline
postings <- ledgerpostings