From df5d14628af4fc8c07fc605aff0651b1f0fd1dfa Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 16 Apr 2025 08:40:58 -1000 Subject: [PATCH] ;doc:cli: adjust source to avoid disrupting markdown-mode outline --- hledger/hledger.m4.md | 33 ++++----------------------------- 1 file changed, 4 insertions(+), 29 deletions(-) diff --git a/hledger/hledger.m4.md b/hledger/hledger.m4.md index b2c933057..9d7e4faa4 100644 --- a/hledger/hledger.m4.md +++ b/hledger/hledger.m4.md @@ -4038,11 +4038,13 @@ journal. It is idempotent, so you don't have to remember how many times you ran it or with which version of the CSV. (It keeps state in a hidden `.latest.FILE.csv` file.) This is the easiest way to import CSV data. Eg: + ```cli # download the latest CSV files, then run this command. # Note, no -f flags needed here. $ hledger import *.csv [--dry] ``` + This method works for most CSV files. (Where records have a stable chronological order, and new records appear only at the new end.) @@ -4226,6 +4228,7 @@ comment %amount1 ``` Here, since there's no CSV amount1 field, %amount1 will produce a literal "amount1": + ```rules fields date,description,csvamount amount1 %csvamount USD @@ -4236,6 +4239,7 @@ comment %amount1 When there are multiple field assignments to the same hledger field, only the last one takes effect. Here, comment's value will be be B, or C if "something" is matched, but never A: + ```rules comment A comment B @@ -4872,35 +4876,6 @@ $ hledger -f a.timedot --alias '/\./=:' bal -t 4.50 ``` - - - # PART 3: REPORTING CONCEPTS # Time periods