Repository navigation
Don't break lines at narrow no-break space (U+202F) or figure space (U+2007) - #8845
Merged
Merged
Conversation
U+202F (narrow no-break space) and U+2007 (figure space) are no-break spaces, like U+00A0, so text wrapping must not break a line at them. U+202F is commonly used as a thousands separator, e.g. `1 234`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Preview available at https://egui-pr-preview.github.io/pr/8845-emilknarrow-no-break-space View snapshot changes at kitdiff |
A shared test helper was gated on `default_fonts` while its callers were not, so the test target did not compile. Tests that need the bundled fonts are now gated like their neighbors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
emilk
marked this pull request as ready for review
November 6, 2026 17:08
rerun-sync Bot
pushed a commit
to rerun-io/rerun
that referenced
this pull request
Nov 9, 2026
### Related * emilk/egui#8845 ### Why `re_format` uses thin space (U+2009) as thousands separator. Thin space allows a line break, so wrapped text can split a number like `1 234 567` across lines. Narrow no-break space (U+202F) is just as narrow, but does not allow a line break. ### Agent 🛂 Created with the `create-pr` skill --------- Source-Ref: bc3f3d4938dc5edfd46b88ea5933cf03f39ec3cd
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.
Text wrapping broke lines at U+202F (narrow no-break space) and U+2007 (figure space). They are no-break spaces, like U+00A0, so egui no longer breaks lines at them.
U+202F is a common thousands separator (
1 234).Top: thin space. Bottom: narrow no-break space.
Also fixes
cargo test -p epaint(withoutdefault_fonts), which did not compile.