Skip to content

fix: avoid breaking after a numeric minus sign - #213

Open
ChuanfengZhang wants to merge 1 commit into
chenglou:mainfrom
ChuanfengZhang:fix/numeric-sign-break
Open

fix: avoid breaking after a numeric minus sign#213
ChuanfengZhang wants to merge 1 commit into
chenglou:mainfrom
ChuanfengZhang:fix/numeric-sign-break

Conversation

@ChuanfengZhang

Copy link
Copy Markdown

fix #212.
A numeric minus sign—whether at the leading position (e.g. -0.475) or following a non-alphanumeric character such as a comparison symbol (e.g. ≥-100nA)—is no longer treated as a preferred break point. The sign stays with its number and the break falls to a later grapheme boundary, matching browser line-breaking behavior.

A numeric minus sign—whether at the leading position (e.g. `-0.475`) or
following a non-alphanumeric character such as a comparison symbol (e.g.
`≥-100nA`)—is no longer treated as a preferred break point. The sign
stays with its number and the break falls to a later grapheme boundary,
matching browser line-breaking behavior.
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: numeric minus sign is treated as a preferred break point (-0.475, ≥-100nA)

1 participant