Skip to content

csvlook should support string values with new lines #1148

Open

Description

@dylan-chong

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

Activity

  1. jpmckinney commented on Oct 17, 2023

    @jpmckinney
    Member

    Upstream issue wireservice/agate#749 and PR wireservice/agate#750

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

  2. mikeyglass35-create commented on Nov 20, 2026

    @mikeyglass35-create

    I retested the CSV from the issue with csvlook 2.2.0 and agate 1.14.2 on Windows 10 (Python 3.13.0). With both LF and CRLF input, csvlook exited with code 0 and rendered the record on one line, replacing the embedded line breaks with ↵.

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

    This matches the behavior introduced in agate #785 and appears to cover the original example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions