fix: csv: ignore extra whitespace in account rule when detecting virtual postings
Reported by CruxOfTheB in chat.
This commit is contained in:
parent
c0c14e53f1
commit
15b2e7d586
@ -1186,7 +1186,7 @@ getAccount :: CsvRules -> CsvRecord -> Maybe MixedAmount -> Maybe (Amount, Sourc
|
||||
getAccount rules record mamount mbalance n =
|
||||
let
|
||||
fieldval = hledgerFieldValue rules record :: HledgerFieldName -> Maybe Text
|
||||
maccount = fieldval ("account"<> T.pack (show n))
|
||||
maccount = T.strip <$> fieldval ("account"<> T.pack (show n))
|
||||
in case maccount of
|
||||
-- accountN is set to the empty string - no posting will be generated
|
||||
Just "" -> Nothing
|
||||
|
||||
Loading…
Reference in New Issue
Block a user