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

Handle carriage return (\r) characters #56

Open
wayne-nlt opened this issue May 27, 2016 · 1 comment
Open

Handle carriage return (\r) characters #56

wayne-nlt opened this issue May 27, 2016 · 1 comment

Comments

@wayne-nlt
Copy link

Hi,
I've just come across an issue with \r characters, I am developing on windows, and some of our translate strings have "\r\n" newlines in them.

The strings get extracted OK, and added to our translations.js file with a \r\n included in the string, but when the translation is being looked up, it is not found because the string being looked up does not contain the \r character.
I'm not sure if the browser strips them out or if it is some other code along the way.

I also receive warnings in poedit about the \r characters, so I am thinking the best way to handle it would be for grunt-angular-gettext to remove them.

What do you think?
Thanks,
Wayne

@Misikir
Copy link

Misikir commented Sep 20, 2017

@wayne-nlt
I have the same issue with \n when the IDE (webstorm) try to word wrap. Did you find any solution about this.

Thanks

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

2 participants