Skip to content

CSV rendering fooled by quoted values that include commas #32025

Closed
@MichaelTiemannOSC

Description

@MichaelTiemannOSC

Code of Conduct

What article on docs.github.com is affected?

This part of the documentation gives instruction as to how to make CSV files beautiful and searchable:

https://docs.github.com/en/repositories/working-with-files/using-files/working-with-non-code-files#rendering-csv-and-tsv-data

Alas, csv data that includes quoted field values which themselves contains commas breaks the beauty, and nowhere does the documentation mention that GitHub's CSV rendering is so naive that it ignores quoted values.

What changes are you suggesting?

The least viable change would be to acknowledge that GitHub's CSV renderer only supports the most simplistic CSV file format imaginable, and does not support quoted values.

1,this line has three values,foo
2,"this line also has three values, though GitHub thinks it has four",bar

A very beneficial change would be to recognize quoted values, and that both lines above do, in fact, contain three values.

Additional information

Here is an example file that does not render properly in GitHub: https://github.com/os-climate/witness-core/blob/main/parameters_glossary.csv

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teammore-information-neededMore information is needed to complete reviewrepositoriesContent related to repositories

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions