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

Extra newlines when XML content contains Windows CR characters #980

Closed
oakesville opened this issue Nov 11, 2015 · 1 comment
Closed

Extra newlines when XML content contains Windows CR characters #980

oakesville opened this issue Nov 11, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@oakesville
Copy link

Highlighted output looks different and contains extraneous newlines in certain situations when the input code includes Windows CR characters (at least when highlighting is performed programmatically).

Here's a Plunker that illustrates this behavior for a simple XML document:
http://plnkr.co/edit/W30o3tjKQm4yeLfg8dpu?p=preview

I've observed the same thing with Groovy under some conditions. Current workaround is to strip out Windows newlines before highlighting:
input.replace(/\r/g, '');

@Sannis Sannis added the bug label Nov 17, 2015
@isagalaev
Copy link
Member

Fixed just now. Thanks for reporting it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants