From 3716ce8a3672aeeec2f5de221cbc712a454a7b27 Mon Sep 17 00:00:00 2001 From: samerbam Date: Wed, 23 Aug 2023 13:03:11 -0400 Subject: [PATCH] fix --- application/thermal_print.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/thermal_print.py b/application/thermal_print.py index a9ea675..fd8ef3c 100644 --- a/application/thermal_print.py +++ b/application/thermal_print.py @@ -83,11 +83,11 @@ class ThermalPrinter(): # self.p.text("" + " "*(32-this_line_width)) else: # self.p.text(" ") - todo_text_max_len = 32-(len(x[0])) + todo_text_max_len = 32-(len(x[0])+1) todo_text = textwrap.wrap(x[1], todo_text_max_len) # t_text = textwrap.wrap() - - self.p.text(" " + todo_text.pop(0)) + fele = todo_text.pop(0) + self.p.text(" "*(todo_text_max_len-len(fele)) + fele) todo_text = textwrap.wrap(' '.join(todo_text), 32) for t in todo_text: