diff --git a/rich/_wrap.py b/rich/_wrap.py index 2e94ff6f4..f1c13e932 100644 --- a/rich/_wrap.py +++ b/rich/_wrap.py @@ -6,7 +6,7 @@ from ._loop import loop_last from .cells import cell_len, chop_cells -re_word = re.compile(r"\s*\S+\s*") +re_word = re.compile("\\s*[\\S\N{NO-BREAK SPACE}]+\\s*") def words(text: str) -> Iterable[tuple[int, int, str]]: