fix: clean up whitespace in display_width and print_table_row functions

This commit is contained in:
Benexl
2025-12-02 13:14:19 +03:00
parent 1f72e0a579
commit f4958cc0cc

View File

@@ -24,7 +24,7 @@ def display_width(text: str) -> int:
width = 0
for char in text:
# East Asian Width property: 'F' (Fullwidth) and 'W' (Wide) take 2 columns
if unicodedata.east_asian_width(char) in ('F', 'W'):
if unicodedata.east_asian_width(char) in ("F", "W"):
width += 2
else:
width += 1