;doc: fix broken "Commodity display style" links [hledger_site/#132]

Followup to jbrains' fix in https://github.com/simonmichael/hledger_site/pull/132.
This commit is contained in:
Simon Michael 2025-05-10 10:43:28 -10:00
parent 9365084b06
commit 59ff2a9542
2 changed files with 3 additions and 3 deletions

View File

@ -82,7 +82,7 @@ keeping the output parseable.
Amounts are shown right-aligned within each transaction Amounts are shown right-aligned within each transaction
(but not aligned across all transactions; you can do that with ledger-mode in Emacs). (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. 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. By default, decimal digits are shown as they are written in the journal.

View File

@ -4194,14 +4194,14 @@ that would trigger the prepending effect, which we don't want here.
### Amount decimal places ### Amount decimal places
When you are reading CSV data, eg with a command like `hledger -f foo.csv print`, 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). 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; 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. 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: 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: 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 1. the style declared for EUR by [a `commodity` directive](#commodity-directive) in the journal