aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorJoe Mooring <[email protected]>2024-01-13 10:28:39 -0800
committerBjørn Erik Pedersen <[email protected]>2024-01-16 09:26:44 +0100
commit912c6576bb47535bb29819c9855da90580e11906 (patch)
tree3dc341ceafb1ed274bf6be4da63650febf4a0bbf /docs
parent911bc60a7ab739885908fdfe49d1578531940909 (diff)
downloadhugo-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.md3
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" ";") }}
```