;doc: csv: clarify skip/valid csv semantics (#1967)
This commit is contained in:
parent
7df44fc199
commit
19821ee0e9
@ -3149,14 +3149,15 @@ won't need this rule.
|
|||||||
```rules
|
```rules
|
||||||
skip N
|
skip N
|
||||||
```
|
```
|
||||||
The word "skip" followed by a number (or no number, meaning 1)
|
The word `skip` followed by a number (or no number, meaning 1)
|
||||||
tells hledger to ignore this many non-empty lines preceding the CSV data.
|
tells hledger to ignore this many non-empty lines at the start of the input data.
|
||||||
(Empty/blank lines are skipped automatically.)
|
(Empty/blank lines are skipped automatically, so you don't need to count those.)
|
||||||
You'll need this whenever your CSV data contains header lines.
|
You'll need this whenever your CSV data contains header lines.
|
||||||
|
Header lines skipped in this way are ignored, and not parsed as CSV.
|
||||||
|
|
||||||
It also has a second purpose: it can be used inside [if blocks](#if) (described below)
|
`skip` can also be used inside [if blocks](#if) (described below),
|
||||||
to ignore certain CSV records.
|
to skip individual data records.
|
||||||
|
Note records skipped in this way are still required to be [valid CSV](#valid-csv), even though otherwise ignored.
|
||||||
|
|
||||||
## `date-format`
|
## `date-format`
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user