Skip to content

CSV dialect with delimiter=' ' and skipinitialspace=True #115712

Closed
@serhiy-storchaka

Description

@serhiy-storchaka

Bug report

Combination of delimiter=' ' and skipinitialspace=True was considered illegal in #113796, because it is ambiguous in case of empty fields. But there may be a use case for this, when the input is a preformatted table with a series of spaces considered as a delimiter:

apples  red     100
bananas yellow  3

Empty fields are not compatible with such format, so the writer should either quote them, or fail if quoting is not possible.

Linked PRs

Metadata

Metadata

Labels

3.11only security fixes3.12only security fixes3.13bugs and security fixestype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions