Skip to content

HtmlExtractor trailing newlines emit broken </pre></pre>#118

Open
santhreal wants to merge 1 commit into
weblyzard:masterfrom
santhreal:fix/html-extractor-pre-newline
Open

HtmlExtractor trailing newlines emit broken </pre></pre>#118
santhreal wants to merge 1 commit into
weblyzard:masterfrom
santhreal:fix/html-extractor-pre-newline

Conversation

@santhreal

@santhreal santhreal commented Jul 18, 2026

Copy link
Copy Markdown

HtmlExtractor hits MalformedHtml when trailing newline replace uses /pre /pre instead of /pre pre. This PR fixes the regression with a focused test covering the case.

HtmlExtractor replaced newlines in the post-annotation tail with
</pre></pre>, producing broken markup. Use the same </pre><pre>
split already applied to earlier spans.
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