From 0925eb53b4c94cff4843b6ed6e1c955d3ba1e2a0 Mon Sep 17 00:00:00 2001 From: Donald Lam Date: Sun, 15 Jan 2023 16:19:18 -0800 Subject: Rename quoted_rfc4180 to quoted_rfc, to avoid parser quirk Ledger's expression parser considers quoted_rfc4180 to be an amount (quantity 4180 of commodity "quoted_rfc"). Fixes #2007. --- test/baseline/opt-csv-format4180.test | 7 +++++++ test/baseline/opt-csv-formatq.test | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 test/baseline/opt-csv-format4180.test create mode 100644 test/baseline/opt-csv-formatq.test (limited to 'test') diff --git a/test/baseline/opt-csv-format4180.test b/test/baseline/opt-csv-format4180.test new file mode 100644 index 00000000..adebb09f --- /dev/null +++ b/test/baseline/opt-csv-format4180.test @@ -0,0 +1,7 @@ +2023/01/09 John's Hardware - 2" rubber nails + Expenses:DIY $1.00 + Assets:Cash + +test csv --csv-format='%(quoted_rfc(payee))\n' expenses +"John's Hardware - 2"" rubber nails" +end test diff --git a/test/baseline/opt-csv-formatq.test b/test/baseline/opt-csv-formatq.test new file mode 100644 index 00000000..ab264a7c --- /dev/null +++ b/test/baseline/opt-csv-formatq.test @@ -0,0 +1,7 @@ +2023/01/09 John's Hardware - 2" rubber nails + Expenses:DIY $1.00 + Assets:Cash + +test csv --csv-format='%(quoted(payee))\n' expenses +"John's Hardware - 2\" rubber nails" +end test -- cgit v1.2.3