Skip to content

Commit ed44f77

Browse files
committed
Fixed missing chunks in the middle of the line
1 parent 2a786af commit ed44f77

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

adafruit_display_text/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ def chunks(lst, n):
4949
the_line = ""
5050
for w in words:
5151
if len(w) > max_chars:
52+
if the_line: # add what we had stored
53+
the_lines.append(the_line)
5254
parts = []
5355
for part in chunks(w, max_chars - 1):
5456
parts.append("{}-".format(part))

0 commit comments

Comments
 (0)