Treats every control character as whitespace
All 8 scenarios hold
These rules cover how one line divides into fields. They apply before the parser reads a field as a value.
Each Row below is parsed as the only data row under a one-column header. Fields shows the captured field list, printed back out. Fields is text rather than a list column because a list cannot hold a null element: writing [a, , c] is itself a parse error. A null field is what several of these rules are about.
Whitespace is every character from U+0000 to U+0020, not only space and tab. The parser removes it around a field and around a list, set, or map element. Quote a value to keep a control character at its start or end.
A cell cannot hold a control character, so ␋ in these rows stands for a vertical tab (U+000B) and ␀ stands for NUL (U+0000).
| Scenario | Row | Fields? |
|---|---|---|
| Before a quoted value | ␋'x' | [x] |
| After a quoted value | 'x'␋ | [x] |
| Before a list | ␋[x] | [[x]] |
| Before a quoted element | [␋'x'] | [[x]] |
| After a quoted element | ['x'␋] | [[x]] |
| At the end of a value | x␀ | [x] |
| The whole field | a | ␋ | [a, null] |
| Inside a quoted value | '␋x' | [␋x] |