From 59ff2a9542eaa414c72791a330afbef0d85cb7c2 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 10 May 2025 10:43:28 -1000 Subject: [PATCH] ;doc: fix broken "Commodity display style" links [hledger_site/#132] Followup to jbrains' fix in https://github.com/simonmichael/hledger_site/pull/132. --- hledger/Hledger/Cli/Commands/Print.md | 2 +- hledger/hledger.m4.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hledger/Hledger/Cli/Commands/Print.md b/hledger/Hledger/Cli/Commands/Print.md index ae1ba8bca..befaa8d3d 100644 --- a/hledger/Hledger/Cli/Commands/Print.md +++ b/hledger/Hledger/Cli/Commands/Print.md @@ -82,7 +82,7 @@ keeping the output parseable. Amounts are shown right-aligned within each transaction (but not aligned across all transactions; you can do that with ledger-mode in Emacs). -Amounts will be (mostly) normalised to their [commodity display style](#commodity-display-styles): +Amounts will be (mostly) normalised to their [commodity display style](#commodity-display-style): their symbol placement, decimal mark, and digit group marks will be made consistent. By default, decimal digits are shown as they are written in the journal. diff --git a/hledger/hledger.m4.md b/hledger/hledger.m4.md index e103b024d..1c43684de 100644 --- a/hledger/hledger.m4.md +++ b/hledger/hledger.m4.md @@ -4194,14 +4194,14 @@ that would trigger the prepending effect, which we don't want here. ### Amount decimal places When you are reading CSV data, eg with a command like `hledger -f foo.csv print`, -hledger will infer each commodity's decimal precision (and other [commodity display styles](#commodity-display-styles)) from the amounts - +hledger will infer each commodity's decimal precision (and other [commodity display styles](#commodity-display-style)) from the amounts - much as when reading a journal file without `commodity` directives (see the link). Note, the commodity styles are not inferred from the numbers in the original CSV data; rather, they are inferred from the amounts generated by the CSV rules. When you are importing CSV data with the `import` command, eg `hledger import foo.csv`, there's another step: -`import` tries to make the new entries [conform](#commodity-display-styles) to the journal's existing styles. +`import` tries to make the new entries [conform](#commodity-display-style) to the journal's existing styles. So for each commodity - let's say it's EUR - `import` will choose: 1. the style declared for EUR by [a `commodity` directive](#commodity-directive) in the journal