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

csv2po new line #3246

Closed
ghost opened this issue Jan 22, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@ghost
Copy link

commented Jan 22, 2015

Hi there, i have CSV with:

"yellow pencil","żółty\nołówek"
"photo description","opis zdjęcia"

And converted with csv2po:

msgid "yellow pencil"
msgstr "żółtynołówek"

msgid "photo description"
msgstr "opis zdjęcia"

How to convert with save format "\n", script delete \ from string.

nijel added a commit to nijel/translate that referenced this issue Feb 22, 2019

CSV: Avoid hardcoding escape char
Really rely on sniffer here, otherwise we might strip too much (the
escape char in CSV is meant only for quotes, otherwise the parser just
strips the escape char).

Fixes translate#3246
@nijel

This comment has been minimized.

Copy link
Contributor

commented Feb 22, 2019

Proposed fix is here: #3880

nijel added a commit to nijel/translate that referenced this issue Feb 22, 2019

CSV: Avoid hardcoding escape char
Really rely on sniffer here, otherwise we might strip too much (the
escape char in CSV is meant only for quotes, otherwise the parser just
strips the escape char).

Fixes translate#3246

nijel added a commit to nijel/translate that referenced this issue Feb 28, 2019

CSV: Avoid hardcoding escape char
Really rely on sniffer here, otherwise we might strip too much (the
escape char in CSV is meant only for quotes, otherwise the parser just
strips the escape char).

Fixes translate#3246

@nijel nijel closed this in #3880 Feb 28, 2019

nijel added a commit that referenced this issue Feb 28, 2019

CSV: Avoid hardcoding escape char
Really rely on sniffer here, otherwise we might strip too much (the
escape char in CSV is meant only for quotes, otherwise the parser just
strips the escape char).

Fixes #3246
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.