From cfcdd47549c3224428bb850d82e68da97ddb3b52 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Mon, 22 Sep 2025 10:43:39 -1000 Subject: [PATCH] ;doc:Account names: edits --- hledger/hledger.m4.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/hledger/hledger.m4.md b/hledger/hledger.m4.md index 5ea81f191..20377a1a7 100644 --- a/hledger/hledger.m4.md +++ b/hledger/hledger.m4.md @@ -1452,23 +1452,24 @@ follows an account name, they must be preceded by two or more spaces, else they would be considered part of the account name: ``` -bad: assets:checking $10 -good: assets:checking $10 +bad: assets:accounts receivable $10 ; <- too close! +good: assets:accounts receivable $10 ``` - + ``` -bad: assets:checking =$1000 -good: assets:checking =$1000 +bad: assets:accounts receivable =$1000 ; <- too close! +good: assets:accounts receivable =$1000 ``` - + ``` -bad: assets:checking ; comment -good: assets:checking ; comment +bad: assets:accounts receivable ; comment. <- too close! +good: assets:accounts receivable ; comment ``` This two-space delimiter appears in a few places in hledger: eg in postings, in account directives, and in period expressions. When starting out it's easy to forget - expect it to catch you out at least once. +It's annoying sometimes, but it lets us use expressive account names while keeping the syntax light. ### Account hierarchy