Skip to content

Commit 2e860cc

Browse files
committed
Addding tab verification when setter is called
1 parent 90f2973 commit 2e860cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adafruit_display_text/label.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ def text(self):
387387

388388
@text.setter
389389
def text(self, new_text):
390+
new_text = " ".join(new_text.split("\t"))
390391
try:
391392
current_anchored_position = self.anchored_position
392393
self._update_text(str(new_text))

0 commit comments

Comments
 (0)