Repository navigation
fix: honor zero-width spaces when wrapping text - #1180
Merged
imaginarny merged 2 commits intoOct 16, 2026
Merged
Conversation
imaginarny
approved these changes
Oct 16, 2026
imaginarny
left a comment
Member
There was a problem hiding this comment.
We are hesitant about contributions like these and evaluate them case-by-case, but the change was small and wouldn't do it any differently really. Although, note that (not you particularly, but in general) human is always going through them and will spend their time on them. So I hope some human care went into this as well. Sry if assuming wrong, It's getting harder. Thank you! 😇
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Overview
Treat U+200B as an invisible word-break opportunity. Text such as
AB\u200BCDEFcan wrap beforeCDEFwithout displaying a space or forcing a newline when the whole text fits.List of changes
\u200B(zero width space) do word break in text #902.text()component against equivalent explicit line breaks.Validation from the repository root on Node 24 and Linux Chromium:
npm run buildandnpm run checkpassed.npm run test -- --reporter=line --workers=2: 98 tests passed; unmodified upstream passes its original 87 tests.npm exec -- dprint checkpassed. ESLint passed for the two changed source files; integration tests are outside its configured scope.Windows, macOS and other browsers were not run locally. This does not add general Unicode line-breaking rules.
Contributor Checks