Skip to content

Commit 5fc08a9

Browse files
committed
Fix long line
1 parent 6647f1c commit 5fc08a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_display_text/text_area.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ def _update_text(self, new_text):
105105
i += 1
106106
old_c += 1
107107
# skip all non-prinables in the old string
108-
while self._text and old_c < len(self._text) and (self._text[old_c] == '\n' or not self.font.get_glyph(ord(self._text[old_c]))):
108+
while (self._text and old_c < len(self._text) and
109+
(self._text[old_c] == '\n' or not self.font.get_glyph(ord(self._text[old_c])))):
109110
old_c += 1
110111
# Remove the rest
111112
while len(self) > i:

0 commit comments

Comments
 (0)