Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xsv table does not handle Tabs well #289

Open
giganteous opened this issue Feb 9, 2022 · 0 comments
Open

xsv table does not handle Tabs well #289

giganteous opened this issue Feb 9, 2022 · 0 comments

Comments

@giganteous
Copy link

Hello,

I discovered a funny artifact when a csv contains tabs in a field; somehow the tab in a column makes the rest of the field display under the next column. I have attached a very small test file
testset.csv
.

It displays as this:

containstabs  changedvalue
foo           bar
"b            a   z"  baz
notabs        notabs
"one          tab"  one tab

Browsing at TabWriter I see that the delimiter is set to a tab. Since xsv table is not meant to be consumed by a process, I'd propose to replace any tabs with a space (or 2).

Small nuisance in a great tool! thanks for writing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant