From 2293030fb5f90057574b73dd4d5bebbd41579126 Mon Sep 17 00:00:00 2001 From: Cameron Clough Date: Fri, 25 Apr 2025 13:50:28 +0100 Subject: [PATCH] lint --- system/ui/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/ui/text.py b/system/ui/text.py index e8db956fa9..53ea2333ce 100755 --- a/system/ui/text.py +++ b/system/ui/text.py @@ -27,7 +27,7 @@ def wrap_text(text, font_size, max_width): continue indent = re.match(r"^\s*", paragraph).group() current_line = indent - words = re.split("(\s+)", paragraph[len(indent):]) + words = re.split(r"(\s+)", paragraph[len(indent):]) while len(words): word = words.pop(0) test_line = current_line + word + (words.pop(0) if words else "")