;doc: csv: try to clarify how CSV/hledger fields work: tweak

This commit is contained in:
Simon Michael 2023-01-19 07:19:34 -10:00
parent eb79385388
commit c403bb56a1

View File

@ -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),
by writing arbitrary names in a `fields` list, eg:
```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):
@ -3084,11 +3084,11 @@ Note the two kinds of field names mentioned here, and used only in hledger CSV r
code %Some_Id
description %What
comment %Foo %Bar
amount1 $ %Total_Amount
amount1 $ %Total
```
or directly in a [`fields` list](#fields-list):
```csv
fields date, description, code, , amount, Foo, Bar
fields date, description, code, , amount1, Foo, Bar
currency $
comment %Foo %Bar
```