From 29caeb9e34182bd79dc9d0e3285a9f0b0916cee8 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 8 Jun 2023 15:16:39 -1000 Subject: [PATCH] ;doc:cli: fix links to include directive --- hledger/hledger.m4.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hledger/hledger.m4.md b/hledger/hledger.m4.md index 708815085..355ea189b 100644 --- a/hledger/hledger.m4.md +++ b/hledger/hledger.m4.md @@ -160,7 +160,7 @@ You can specify multiple `-f` options, to read multiple files as one big journal - [Balance assertions](#balance-assertions) will not see the effect of transactions in previous files. (Usually this doesn't matter as each file will set the corresponding opening balances.) - Some [directives](#directives) will not affect previous or subsequent files. -If needed, you can work around these by using a single parent file which [includes](#including-files) the others, or concatenating the files into one, eg: `cat a.journal b.journal | hledger -f- CMD`. +If needed, you can work around these by using a single parent file which [includes](#include-directive) the others, or concatenating the files into one, eg: `cat a.journal b.journal | hledger -f- CMD`. ## Strict mode @@ -1392,7 +1392,7 @@ can assert intra-day balances. ### Assertions and multiple included files -Multiple files included with the [`include` directive](#including-files) +Multiple files included with the [`include` directive](#include-directive) are processed as if concatenated into one file, preserving their order and the posting order within each file. It means that balance assertions in later files will see balance from earlier files. @@ -1718,7 +1718,7 @@ In [strict mode], enabled with the `-s`/`--strict` flag, hledger will report an - The declaration is case-sensitive; transactions must use the correct account name capitalisation. - The account directive's scope is "whole file and below" (see [directives](#directives)). This means it affects all of the current file, and any files it includes, but not parent or sibling files. The position of account directives within the file does not matter, though it's usual to put them at the top. -- Accounts can only be declared in `journal` files, but will affect [included](#including-files) files of all types. +- Accounts can only be declared in `journal` files, but will affect [included](#include-directive) files of all types. - It's currently not possible to declare "all possible subaccounts" with a wildcard; every account posted to must be declared. ### Account display order @@ -1865,7 +1865,7 @@ See also [Rewrite account names](/rewrite-account-names.html). To set an account alias, use the `alias` directive in your journal file. This affects all subsequent journal entries in the current file or its -[included files](#including-files) +[included files](#include-directive) (but note: [not sibling or parent files](#aliases-and-multiple-files)). The spaces around the = are optional: