From b455a9e029f73a71430c2b6760bacfdd4014368d Mon Sep 17 00:00:00 2001 From: samerbam Date: Wed, 23 Aug 2023 10:15:05 -0400 Subject: [PATCH] change meth0od --- application/thermal_print.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/thermal_print.py b/application/thermal_print.py index cb67b6b..b9b523a 100644 --- a/application/thermal_print.py +++ b/application/thermal_print.py @@ -72,7 +72,7 @@ class ThermalPrinter(): self.p.set(align="left") self.p.text(x[0]) if this_line_width < 32: - self.p.text(" "*(32-this_line_width)) + self.p.text("" + " "*(32-this_line_width)) else: # self.p.text(" ") todo_text_max_len = 32-(len(x[0])+1) @@ -80,7 +80,7 @@ class ThermalPrinter(): # t_text = textwrap.wrap() for t in todo_text: - self.p.text(" "*(len(x[0])+1) ) + self.p.text("" + " "*(len(x[0])+1) ) self.p.text(t + "\n")