grunt-angular-gettext
grunt-angular-gettext copied to clipboard
Handle carriage return (\r) characters
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
@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