From ce6939b304b0ba0e614c695f2b7681268b3108cd Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 13 Jan 2021 17:53:14 -0800 Subject: [PATCH] ;journal: doc: note commodity directives' position-sensitivity --- hledger/hledger.m4.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hledger/hledger.m4.md b/hledger/hledger.m4.md index 80ae3cc73..7e3790ca8 100644 --- a/hledger/hledger.m4.md +++ b/hledger/hledger.m4.md @@ -1833,9 +1833,10 @@ commodity INR 9,99,99,999.00 commodity 1 000 000.9455 ``` -(`commodity` directives declare both the number format for parsing input, -and the display style for showing output; this is discussed more on -[#793](https://github.com/simonmichael/hledger/issues/793).) +Note, `commodity` directives declare both the number format for parsing input, +and the display style for showing output. For the former, they are position-sensitive, +affecting only following amounts, so commodity directives should be at the top of your journal file. +This is discussed more on [#793](https://github.com/simonmichael/hledger/issues/793).