Skip to content

fix: preserve leading ZWSP so zero-width-only lines are not dropped - #211

Open
ChuanfengZhang wants to merge 1 commit into
chenglou:mainfrom
ChuanfengZhang:preserve-leading-zwsp
Open

fix: preserve leading ZWSP so zero-width-only lines are not dropped#211
ChuanfengZhang wants to merge 1 commit into
chenglou:mainfrom
ChuanfengZhang:preserve-leading-zwsp

Conversation

@ChuanfengZhang

Copy link
Copy Markdown

fix #210.
ZWSP was folded at line start like CSS-collapsible whitespace, so a line holding only the ZWSP was dropped and layout under-counted it versus real rendering. Keep ZWSP at line start and track fragment consumption separately from line width in the rich inline walker.

ZWSP was folded at line start like CSS-collapsible whitespace, so a
line holding only the ZWSP was dropped and layout under-counted it
versus real rendering. Keep ZWSP at line start and track fragment
consumption separately from line width in the rich inline walker.
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.

Bug: leading ZWSP (U+200B) is consumed at line start, one line undercounted vs. browsers

1 participant