imp:ledger-compat: accept lot costs with spaces after {, like Ledger

This commit is contained in:
Simon Michael 2023-11-23 08:31:05 -10:00
parent 4b13af0634
commit b4a6212453

View File

@ -959,6 +959,7 @@ lotcostp =
label "ledger-style lot cost" $ do
char '{'
doublebrace <- option False $ char '{' >> pure True
lift skipNonNewlineSpaces
_fixed <- fmap isJust $ optional $ lift skipNonNewlineSpaces >> char '='
lift skipNonNewlineSpaces
_a <- simpleamountp False