Skip to content

Handle carriage return (\r) characters #56

Description

@wayne-nlt

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions