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

fix escaping fields #152

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

fix escaping fields #152

wants to merge 2 commits into from

Conversation

ycintre
Copy link

@ycintre ycintre commented Mar 16, 2016

Escape the field with double quotes if it contains a double quote in the value.

This is specified in the RFC as follows:

6 . Fields containing line breaks (CRLF), double quotes, and commas
should be enclosed in double-quotes.

@ycintre
Copy link
Author

ycintre commented Mar 16, 2016

I also added a fix to the escape mechanism to use the user-specified field delimiter instead of hard-coded comma

@ycintre ycintre changed the title fix escaping if quote is present in field fix escaping fields Mar 16, 2016
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

Successfully merging this pull request may close these issues.

1 participant