Prevent breaking long words on generic labels

This commit is contained in:
2023-12-06 18:56:09 -07:00
parent a595caac18
commit 96f03a3119
2 changed files with 3 additions and 3 deletions

View File

@@ -337,7 +337,7 @@ def print_generic_label(text):
font = ImageFont.truetype('/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf', font_size)
for cols in range(100, 1, -4):
paragraph = textwrap.wrap(text, width=cols)
paragraph = textwrap.wrap(text, width=cols, break_long_words=False)
total_h = -PAD
total_w = 0