From 7ac1bdf8c1200fefa2ed932cc9060f833d0299a8 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 7 Jun 2019 06:34:52 -0700 Subject: [PATCH] ;csv: document spaces outside quotes issue (#1037) [ci skip] --- hledger-lib/hledger_csv.m4.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hledger-lib/hledger_csv.m4.md b/hledger-lib/hledger_csv.m4.md index fa5ae88d4..224eb08de 100644 --- a/hledger-lib/hledger_csv.m4.md +++ b/hledger-lib/hledger_csv.m4.md @@ -274,3 +274,15 @@ whenever the running balance field is non-empty. You can read multiple CSV files at once using multiple `-f` arguments on the command line, and hledger will look for a correspondingly-named rules file for each. Note if you use the `--rules-file` option, this one rules file will be used for all the CSV files being read. + +## Valid CSV + +hledger follows [RFC 4180](https://tools.ietf.org/html/rfc4180), +with the addition of a customisable separator character. + +Some things to note: + +When quoting fields, + +- you must use double quotes, not single quotes +- spaces outside the quotes are [not allowed](https://stackoverflow.com/questions/4863852/space-before-quote-in-csv-field).