mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 12:34:44 -04:00
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
This commit is contained in:
parent
6ed2e19c25
commit
6cbd2c62c4
@ -125,6 +125,9 @@ delimiter
|
|||||||
comment
|
comment
|
||||||
: (`string`) The comment character used in the CSV. If set, lines beginning with the comment character without preceding whitespace are ignored.
|
: (`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
|
```go-html-template
|
||||||
{{ $csv := "a;b;c" | transform.Unmarshal (dict "delimiter" ";") }}
|
{{ $csv := "a;b;c" | transform.Unmarshal (dict "delimiter" ";") }}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user