diff options
author | Joe Mooring <[email protected]> | 2024-01-13 10:28:39 -0800 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-01-16 09:26:44 +0100 |
commit | 912c6576bb47535bb29819c9855da90580e11906 (patch) | |
tree | 3dc341ceafb1ed274bf6be4da63650febf4a0bbf /docs | |
parent | 911bc60a7ab739885908fdfe49d1578531940909 (diff) | |
download | hugo-912c6576bb47535bb29819c9855da90580e11906.tar.gz hugo-912c6576bb47535bb29819c9855da90580e11906.zip |
parser/metadecoders: Add CSV lazyQuotes option to transform.Unmarshal
If true, a quote may appear in an unquoted field and a non-doubled quote
may appear in a quoted field. It defaults to false.
Closes #11884
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/en/functions/transform/Unmarshal.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/content/en/functions/transform/Unmarshal.md b/docs/content/en/functions/transform/Unmarshal.md index 02524509b..e24f76381 100644 --- a/docs/content/en/functions/transform/Unmarshal.md +++ b/docs/content/en/functions/transform/Unmarshal.md @@ -125,6 +125,9 @@ delimiter comment : (`string`) The comment character used in the CSV. If set, lines beginning with the comment character without preceding whitespace are ignored. +lazyQuotes +: (`bool`) If true, a quote may appear in an unquoted field and a non-doubled quote may appear in a quoted field. Default is `false`. + ```go-html-template {{ $csv := "a;b;c" | transform.Unmarshal (dict "delimiter" ";") }} ``` |