grunt-angular-gettext icon indicating copy to clipboard operation
grunt-angular-gettext copied to clipboard

Handle carriage return (\r) characters

Open wayne-nlt opened this issue 8 years ago • 1 comments

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 avatar May 27 '16 06:05 wayne-nlt

@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

Misikir avatar Sep 20 '17 12:09 Misikir