-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
io.metadata: Fix newline handling when reading CSV/TSV
The csv module very clearly documents¹ that the "newline" parameter should be set to the empty string so that the csv module can itself do proper embedded newline handling. Follow that recommendation. This change shouldn't affect existing inputs that worked fine but now allows inputs with embedded newlines in fields. The previously-added failing test now passes. ¹ <https://docs.python.org/3/library/csv.html#id4>
- Loading branch information
Showing
2 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters