Skip to content

Strip carriage return in HTML formatter#2266

Merged
jneen merged 1 commit intomainfrom
bugfix.strip-carriage-return
Apr 9, 2026
Merged

Strip carriage return in HTML formatter#2266
jneen merged 1 commit intomainfrom
bugfix.strip-carriage-return

Conversation

@jneen
Copy link
Copy Markdown
Member

@jneen jneen commented Apr 7, 2026

@mlaggner reported extra newlines being rendered by the HTML formatter on some Windows browsers. This is an attempt at a fix - a <pre> or white-space: pre formatted HTML block should not contain any carriage returns (\r).

@jneen
Copy link
Copy Markdown
Member Author

jneen commented Apr 7, 2026

It will take me a moment to be able to have a Windows setup I can test this on.

@jneen jneen mentioned this pull request Apr 8, 2026
@jneen
Copy link
Copy Markdown
Member Author

jneen commented Apr 9, 2026

@mlaggner tested this out and it seems to work well. I think the formatter is the correct place to put this for now. Merging.

@jneen jneen added this pull request to the merge queue Apr 9, 2026
Merged via the queue into main with commit 56fe6c4 Apr 9, 2026
10 checks passed
@jneen jneen deleted the bugfix.strip-carriage-return branch April 9, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant