-
Notifications
You must be signed in to change notification settings - Fork 324
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
Is there an option to write without CSV escapes? #107
Comments
@jondegenhardt Thanks for the detailed question! I do not believe there is any such option. In fact, the underlying CSV writer doesn't support it, so that's how I know there isn't any such option. The CSV writer options are here: https://docs.rs/csv/1.0.0-beta.5/csv/struct.WriterBuilder.html --- we might consider changing The last bit is silently changing My estimation is that this is a bit of an awkward fit for |
Very good, thanks for the detailed response. The CSV doc reference is helpful. |
I was about to open a new issue about this, cf. comments from #67 (comment) and down, but I see this has been closed already. @jondegenhardt if you still have a need for --quote-never, xsv 0.13.0 seems to do this if you pass in the ASCII character 1, though as it's not documented anywhere I guess it comes with no guarantees :-)
|
@unhammer Just to clarify, using the ASCII byte I'm not sure why this was closed. The underlying CSV writer does support it, so I think this is as easy as adding a new |
Aha, thanks for the clarification, good to know the exact dangers involved. |
Reason I closed it was that my question had been answered. Didn't mean to suggest the feature would not be useful. |
Hi, I think Thanks! (and congrats for the tool, it's great) |
What’s the behavior when a tab or newline is encountered in the data? Are they just converted to spaces (the example says “and might be replaced by a space when encountered”)? Or should the program error out? |
A question: Is there an option to perform output without the CSV escape syntax? This would be to generate a more strict TSV format, without escapes.
I don't see this, and the documentation is pretty good. I'd just like to make sure I haven't missed something. There are a number of options to the
fmt
command that provide control over the escaping used, but I didn't see one turning it off.Some examples:
Again, I'm only asking if there is an option I haven't found. In the examples above the
fmt
command is doing exactly what it says, which is to change the CSV delimiter character.The text was updated successfully, but these errors were encountered: