Skip to content

fix(transient-render-engine): preserve nested inline boundary spaces#34

Open
leineveber wants to merge 1 commit intonative-html:mainfrom
leineveber:fix/nested-inline-whitespace
Open

fix(transient-render-engine): preserve nested inline boundary spaces#34
leineveber wants to merge 1 commit intonative-html:mainfrom
leineveber:fix/nested-inline-whitespace

Conversation

@leineveber
Copy link
Copy Markdown

Summary

Fix whitespace collapsing for nested inline phrasing nodes so boundary spaces inside named inline wrappers like span are preserved until the parent phrasing node collapses sibling whitespace correctly.

Adds a regression test for nested inline tags that previously rendered foo bar as foobar.

Closes #33

Keep boundary spaces inside named inline wrappers until the parent
phrasing node collapses sibling whitespace.

Add a regression test for nested inline tags that previously rendered
"foobar" instead of "foo bar".

Made-with: Cursor
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.

Whitespace collapsing trims spaces too early in nested inline phrasing nodes

1 participant