;doc: csv: try to clarify how CSV/hledger fields work: tweak
This commit is contained in:
parent
eb79385388
commit
c403bb56a1
@ -3073,7 +3073,7 @@ Note the two kinds of field names mentioned here, and used only in hledger CSV r
|
|||||||
(since hledger doesn't yet automatically recognise column headings in a CSV file),
|
(since hledger doesn't yet automatically recognise column headings in a CSV file),
|
||||||
by writing arbitrary names in a `fields` list, eg:
|
by writing arbitrary names in a `fields` list, eg:
|
||||||
```csv
|
```csv
|
||||||
fields When, What, Some_Id, Net_Amount, Total_Amount, Foo, Bar
|
fields When, What, Some_Id, Net, Total, Foo, Bar
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Special **hledger field names** (`HLEDGERFIELD` in these docs):
|
2. Special **hledger field names** (`HLEDGERFIELD` in these docs):
|
||||||
@ -3084,11 +3084,11 @@ Note the two kinds of field names mentioned here, and used only in hledger CSV r
|
|||||||
code %Some_Id
|
code %Some_Id
|
||||||
description %What
|
description %What
|
||||||
comment %Foo %Bar
|
comment %Foo %Bar
|
||||||
amount1 $ %Total_Amount
|
amount1 $ %Total
|
||||||
```
|
```
|
||||||
or directly in a [`fields` list](#fields-list):
|
or directly in a [`fields` list](#fields-list):
|
||||||
```csv
|
```csv
|
||||||
fields date, description, code, , amount, Foo, Bar
|
fields date, description, code, , amount1, Foo, Bar
|
||||||
currency $
|
currency $
|
||||||
comment %Foo %Bar
|
comment %Foo %Bar
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user