From 703fcb6378006d742137fe23cf27aa571e2f57d1 Mon Sep 17 00:00:00 2001 From: Cameron Clough Date: Tue, 22 Apr 2025 20:50:45 +0100 Subject: [PATCH] shorter --- 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 5c888adcf8..79c20ce8dc 100755 --- a/system/ui/text.py +++ b/system/ui/text.py @@ -21,7 +21,7 @@ def wrap_text(text, font_size, max_width): for paragraph in text.split("\n"): if not paragraph.strip(): - # Don't add an empty line to the start of the list, ensuring wrap_text("") returns [] + # Don't add empty lines first, ensuring wrap_text("") returns [] if lines: lines.append("") continue