Skip to content

Preserve empty lines between consecutive <br> elements - #270

Open
dajiaohuang wants to merge 1 commit into
ArthurHub:masterfrom
dajiaohuang:fix/259-consecutive-line-breaks
Open

dajiaohuang wants to merge 1 commit into
ArthurHub:masterfrom
dajiaohuang:fix/259-consecutive-line-breaks

Conversation

@dajiaohuang

Copy link
Copy Markdown

Summary

  • Preserve an explicit newline for a <br> whose previous sibling is also a <br>, including when inline content follows the second break.
  • Add an integration regression test comparing rendered heights for one break versus two consecutive breaks.

The existing 02.Line break.htm sample contains consecutive breaks, and its checked-in baseline shows adjacent text lines without an empty line. The parser's correction only materialized a newline for a break at the start of a block or at the end before inline content; a middle consecutive break did not take that path.

Validation

  • git diff --check passed.
  • Attempted the focused integration test. The .NET 10.0.100 first-run initialized, but restore failed with NU1301 while loading https://api.nuget.org/v3/index.json (Value cannot be null. (Parameter 'path1')). No tests ran; this change is not independently validated yet.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants