;csv: doc: fix some if-related links
This commit is contained in:
parent
0bbd88fe7f
commit
81d3ac7d66
@ -39,7 +39,8 @@ these are described more fully below, after the examples:
|
|||||||
| [**`fields`**](#fields) | name CSV fields, assign them to hledger fields |
|
| [**`fields`**](#fields) | name CSV fields, assign them to hledger fields |
|
||||||
| [**field assignment**](#field-assignment) | assign a value to one hledger field, with interpolation |
|
| [**field assignment**](#field-assignment) | assign a value to one hledger field, with interpolation |
|
||||||
| [**`separator`**](#separator) | a custom field separator |
|
| [**`separator`**](#separator) | a custom field separator |
|
||||||
| [**`if`**](#if) | apply some rules to matched CSV records |
|
| [**`if` block**](#if-block) | apply some rules to CSV records matched by patterns |
|
||||||
|
| [**`if` table**](#if-table) | apply some rules to CSV records matched by patterns, alternate syntax |
|
||||||
| [**`end`**](#end) | skip the remaining CSV records |
|
| [**`end`**](#end) | skip the remaining CSV records |
|
||||||
| [**`date-format`**](#date-format) | describe the format of CSV dates |
|
| [**`date-format`**](#date-format) | describe the format of CSV dates |
|
||||||
| [**`newest-first`**](#newest-first) | disambiguate record order when there's only one date |
|
| [**`newest-first`**](#newest-first) | disambiguate record order when there's only one date |
|
||||||
@ -370,7 +371,7 @@ tells hledger to ignore this many non-empty lines preceding the CSV data.
|
|||||||
(Empty/blank lines are skipped automatically.)
|
(Empty/blank lines are skipped automatically.)
|
||||||
You'll need this whenever your CSV data contains header lines.
|
You'll need this whenever your CSV data contains header lines.
|
||||||
|
|
||||||
It also has a second purpose: it can be used inside [if blocks](#if)
|
It also has a second purpose: it can be used inside [if blocks](#if-block)
|
||||||
to ignore certain CSV records (described below).
|
to ignore certain CSV records (described below).
|
||||||
|
|
||||||
|
|
||||||
@ -520,6 +521,7 @@ separator TAB
|
|||||||
|
|
||||||
See also: [File Extension](#file-extension).
|
See also: [File Extension](#file-extension).
|
||||||
|
|
||||||
|
|
||||||
## `if` block
|
## `if` block
|
||||||
|
|
||||||
```rules
|
```rules
|
||||||
@ -590,6 +592,7 @@ banking thru software
|
|||||||
comment XXX deductible ? check it
|
comment XXX deductible ? check it
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## `if` table
|
## `if` table
|
||||||
|
|
||||||
```rules
|
```rules
|
||||||
@ -644,7 +647,7 @@ atm transaction fee,expenses:business:banking,deductible? check it
|
|||||||
|
|
||||||
## `end`
|
## `end`
|
||||||
|
|
||||||
This rule can be used inside [if blocks](#if) (only), to make hledger stop
|
This rule can be used inside [if blocks](#if-block) (only), to make hledger stop
|
||||||
reading this CSV file and move on to the next input file, or to command execution.
|
reading this CSV file and move on to the next input file, or to command execution.
|
||||||
Eg:
|
Eg:
|
||||||
```rules
|
```rules
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user