You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a contrived example that demonstrates the issue:
fromrich.consoleimportConsolefromrich.panelimportPanelconsole=Console()
text='A quick brown\N{NO-BREAK SPACE}fox jumps over the lazy dog.'console.print(Panel(text, width=20))
It prints
╭──────────────────╮
│ A quick brown │
│ fox jumps over │
│ the lazy dog. │
╰──────────────────╯
Observe how there's a line break between 'brown' and 'fox', despite the U+0020 NO-BREAK SPACE character. Apparently rich treats it like any other whitespace.
This is what I wanted to see:
╭──────────────────╮
│ A quick │
│ brown fox jumps │
│ over the lazy │
│ dog. │
╰──────────────────╯
Platform
Click to expand
What platform (Win/Linux/Mac) are you running on?
Ubuntu 24.10
What terminal software are you using?
GNOME Terminal 3.54.0 using VTE 0.78.0 +BIDI +GNUTLS +ICU +SYSTEMD
Describe the bug
Here's a contrived example that demonstrates the issue:
It prints
Observe how there's a line break between 'brown' and 'fox', despite the U+0020 NO-BREAK SPACE character. Apparently rich treats it like any other whitespace.
This is what I wanted to see:
Platform
Click to expand
Ubuntu 24.10
GNOME Terminal 3.54.0 using VTE 0.78.0 +BIDI +GNUTLS +ICU +SYSTEMD
The text was updated successfully, but these errors were encountered: