Account parsers. Account names fall into one of three groups:
- Level 1 account. Can have nearly any character, including spaces. However, when in a Ledger file they must be quoted.
- Level 2 account. The first sub-account begins with a letter. All other characters may be nearly any character, except for a space.
Shows an account, with the minimum level of quoting
possible. Fails with an error if any one of the characters in the
account name does not satisfy the
lvl1Char predicate. Otherwise
returns a rendered account, quoted if necessary.
Characters allowed in a Level 1 account. (Check the source code to see what these are).