;doc: journal: 2 spaces required in same line account comments (#1182)

[ci skip]
This commit is contained in:
Simon Michael 2020-01-22 05:42:22 -08:00
parent 090f65ec83
commit 9874d29953

View File

@ -959,17 +959,22 @@ account assets:bank:checking
#### Account comments #### Account comments
[Comments](#comments), beginning with a semicolon, optionally including [tags](journal.html#tags), [Comments](#comments), beginning with a semicolon, can be added:
can be written after the account name, and/or on following lines. Eg:
- on the same line, **after two or more spaces**
(because ; is allowed in account names)
- on the next lines, indented
An example of both:
```journal ```journal
account assets:bank:checking ; a comment account assets:bank:checking ; same-line comment, note 2+ spaces before ;
; another comment ; next-line comment
; acctno:12345, a tag ; another with tag, acctno:12345 (not used yet)
``` ```
Tip: comments on the same line require hledger 1.12+. Same-line comments are not supported by Ledger, or hledger <1.13.
If you need your journal to be compatible with older hledger versions,
write comments on the next line instead. <!-- Account comments may include [tags](journal.html#tags), though we don't yet use them for anything. -->
#### Account subdirectives #### Account subdirectives