hledger icon indicating copy to clipboard operation
hledger copied to clipboard

account directives should disallow parentheses, square brackets

Open simonmichael opened this issue 3 years ago • 0 comments

hledger's journal reader accepts but misparses parentheses/square brackets in account directives (reported by dentalfloss). Eg:

account (a)

2022-01-01
    a         0
$ hledger -f a.j accounts
(a)
a
$ hledger -f a.j check accounts
hledger: Error: /Users/simon/src/hledger/a.j:4:
  | 2022-01-01
4 |     a               0
  |     ^

Strict account checking is enabled, and
account "a" has not been declared.

simonmichael avatar Aug 12 '22 09:08 simonmichael