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

Custom newLineSeparator feature #231

Open
EEJesse opened this issue Jun 15, 2020 · 1 comment · May be fixed by #232
Open

Custom newLineSeparator feature #231

EEJesse opened this issue Jun 15, 2020 · 1 comment · May be fixed by #232

Comments

@EEJesse
Copy link

EEJesse commented Jun 15, 2020

Newlines in CSVs are generated with the \n character. Unfortunately some programs do not handle this format and require \r\n to be used instead.

I think a great solution would be if we can give a custom string for the separator.
For example:

<CSVLink filename="newline.csv" newLineSeparator="\r\n" data={...}>Export</CSVLink>
@EEJesse EEJesse linked a pull request Jun 15, 2020 that will close this issue
@abdennour
Copy link
Collaborator

Please check my comment under your PR #232

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 a pull request may close this issue.

2 participants