We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a786af commit ed44f77Copy full SHA for ed44f77
adafruit_display_text/__init__.py
@@ -49,6 +49,8 @@ def chunks(lst, n):
49
the_line = ""
50
for w in words:
51
if len(w) > max_chars:
52
+ if the_line: # add what we had stored
53
+ the_lines.append(the_line)
54
parts = []
55
for part in chunks(w, max_chars - 1):
56
parts.append("{}-".format(part))
0 commit comments