Productgids · 7 min lezen
Quoted fields and embedded newlines: how multiline cells look in grids
RFC-style CSV quoting rules, why addresses and JSON snippets break naive splitters, and how proper parsers and grids display multiline fields.
Gepubliceerd op 19 maart 2025 · Table
In real CSV, a single logical row can span multiple physical lines when a field is wrapped in double quotes and contains newline characters. Addresses, ticket comments, and JSON blobs are common culprits. Naive tools that split on line breaks alone will shred those records.
Rules of thumb
- Fields with commas, quotes, or newlines should be wrapped in double quotes.
- Internal double quotes are escaped by doubling them (
""). - Parsers must be stateful: inside quotes, newline does not end the row.
- Grids may show multiline cells with wrapped text or a single line with visible break characters depending on settings.
Table and modern parsing
Table relies on a proper CSV parser so quoted newlines stay inside one row. Use search and filters to find records that still look wrong, which usually points back to a malformed quote in the source export.