wireservice / csvkit

A suite of utilities for converting to and working with CSV, the king of tabular file formats.
https://csvkit.readthedocs.io
MIT License
5.98k stars 608 forks source link

csvlook should support string values with new lines #1148

Open dylan-chong opened 2 years ago

dylan-chong commented 2 years ago

The following is a valid csv file

a,b,c
A,"this is
a multi
line
b", C

but csv look prints this as

| a | b                      | c  |
| - | ---------------------- | -- |
| A | this is
a multi
line
b |  C |

csvlook should have multiline cells, or (the easier way) escape new lines by displaying them as \n

jpmckinney commented 11 months ago

Upstream issue https://github.com/wireservice/agate/issues/749 and PR https://github.com/wireservice/agate/pull/750

There's a question in the issue that I need feedback on.