;doc: add version annotations for features in 1.32

- match groups and match negations
- beancount output format
- tsv output format
- consistently add annotation
- `--round` for print
This commit is contained in:
hamzashezad 2024-01-12 23:57:13 +00:00 committed by Simon Michael
parent 6461839e33
commit 6afff58fb8
8 changed files with 12 additions and 10 deletions

View File

@ -62,7 +62,7 @@ at the cost of more time and memory, use the `--align-all` flag.
This command also supports the This command also supports the
[output destination](hledger.html#output-destination) and [output destination](hledger.html#output-destination) and
[output format](hledger.html#output-format) options. [output format](hledger.html#output-format) options.
The output formats supported are `txt`, `csv`, `tsv`, and `json`. The output formats supported are `txt`, `csv`, `tsv` (*Added in 1.32*), and `json`.
### aregister and posting dates ### aregister and posting dates

View File

@ -74,7 +74,7 @@ Many of these work with the higher-level commands as well.
This command supports the This command supports the
[output destination](#output-destination) and [output destination](#output-destination) and
[output format](#output-format) options, [output format](#output-format) options,
with output formats `txt`, `csv`, `tsv`, `json`, and (multi-period reports only:) `html`. with output formats `txt`, `csv`, `tsv` (*Added in 1.32*), `json`, and (multi-period reports only:) `html`.
In `txt` output in a colour-supporting terminal, negative amounts are shown in red. In `txt` output in a colour-supporting terminal, negative amounts are shown in red.
The `--related`/`-r` flag shows the balance of the *other* postings in the The `--related`/`-r` flag shows the balance of the *other* postings in the

View File

@ -48,4 +48,4 @@ This command also supports the
[output destination](hledger.html#output-destination) and [output destination](hledger.html#output-destination) and
[output format](hledger.html#output-format) options [output format](hledger.html#output-format) options
The output formats supported are The output formats supported are
`txt`, `csv`, `tsv`, `html`, and `json`. `txt`, `csv`, `tsv` (*Added in 1.32*), `html`, and `json`.

View File

@ -48,4 +48,4 @@ This command also supports the
[output destination](hledger.html#output-destination) and [output destination](hledger.html#output-destination) and
[output format](hledger.html#output-format) options [output format](hledger.html#output-format) options
The output formats supported are The output formats supported are
`txt`, `csv`, `tsv`, `html`, and `json`. `txt`, `csv`, `tsv` (*Added in 1.32*), `html`, and `json`.

View File

@ -49,4 +49,4 @@ This command also supports the
[output destination](hledger.html#output-destination) and [output destination](hledger.html#output-destination) and
[output format](hledger.html#output-format) options [output format](hledger.html#output-format) options
The output formats supported are The output formats supported are
`txt`, `csv`, `tsv`, `html`, and `json`. `txt`, `csv`, `tsv` (*Added in 1.32*), `html`, and `json`.

View File

@ -58,7 +58,7 @@ Amounts will be (mostly) normalised to their [commodity display style](#commodit
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.
With the `--round` option, `print` will try increasingly hard to With the `--round` (*Added in 1.32*) option, `print` will try increasingly hard to
display decimal digits according to the [commodity display styles](#commodity-display-style): display decimal digits according to the [commodity display styles](#commodity-display-style):
- `--round=none` show amounts with original precisions (default) - `--round=none` show amounts with original precisions (default)
@ -115,7 +115,7 @@ This command also supports the
[output destination](hledger.html#output-destination) and [output destination](hledger.html#output-destination) and
[output format](hledger.html#output-format) options [output format](hledger.html#output-format) options
The output formats supported are The output formats supported are
`txt`, `beancount`, `csv`, `tsv`, `json` and `sql`. `txt`, `beancount` (*Added in 1.32*), `csv`, `tsv` (*Added in 1.32*), `json` and `sql`.
The `beancount` format tries to produce Beancount-compatible output, as follows: The `beancount` format tries to produce Beancount-compatible output, as follows:

View File

@ -142,4 +142,4 @@ This command also supports the
[output destination](hledger.html#output-destination) and [output destination](hledger.html#output-destination) and
[output format](hledger.html#output-format) options [output format](hledger.html#output-format) options
The output formats supported are The output formats supported are
`txt`, `csv`, `tsv`, and `json`. `txt`, `csv`, `tsv` (*Added in 1.32*), and `json`.

View File

@ -3338,13 +3338,15 @@ When an if block has multiple matchers, they are combined as follows:
- By default they are OR'd (any one of them can match) - By default they are OR'd (any one of them can match)
- When a matcher is preceded by ampersand (`&`) it will be AND'ed with the previous matcher (both of them must match) - When a matcher is preceded by ampersand (`&`) it will be AND'ed with the previous matcher (both of them must match)
- When a matcher is preceded by an exclamation mark (`!`), the matcher is negated (it may not match). - *Added in 1.32* When a matcher is preceded by an exclamation mark (`!`), the matcher is negated (it may not match).
[Currently](https://github.com/simonmichael/hledger/pull/2088#issuecomment-1844200398) there is a limitation: [Currently](https://github.com/simonmichael/hledger/pull/2088#issuecomment-1844200398) there is a limitation:
you can't use both `&` and `!` on the same line (you can't AND a negated matcher). you can't use both `&` and `!` on the same line (you can't AND a negated matcher).
### Match groups ### Match groups
*Added in 1.32*
Matchers can define match groups: parenthesised portions of the regular expression Matchers can define match groups: parenthesised portions of the regular expression
which are available for reference in field assignments. Groups are enclosed which are available for reference in field assignments. Groups are enclosed
in regular parentheses (`(` and `)`) and can be nested. Each group is available in regular parentheses (`(` and `)`) and can be nested. Each group is available
@ -4240,7 +4242,7 @@ After the date line are zero or more time postings, consisting of:
These are the dots in "timedot". These are the dots in "timedot".
Spaces are ignored and can be used for grouping/alignment. Spaces are ignored and can be used for grouping/alignment.
- one or more letters. These are like dots but they also generate - *Added in 1.32* one or more letters. These are like dots but they also generate
a tag `t:` (short for "type") with the letter as its value, a tag `t:` (short for "type") with the letter as its value,
and a separate posting for each of the values. and a separate posting for each of the values.
This provides a second dimension of categorisation, This provides a second dimension of categorisation,