Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Carriage Returns Break Highlighting #8

kbjr opened this Issue · 0 comments

2 participants


It's a pretty simple issue with a pretty simple fix, but I thought you might want to work the fix into your code to save someone else the trouble of figuring out what's wrong. A simple regexp replace is sufficient.

text = text.replace(/\r\n|\r|\n/g, '\n');

If nothing else, it would be nice if it was documented that carriage returns cause problems.

@andris9 andris9 closed this in 052fc34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.