fine tune formula

This commit is contained in:
samerbam 2023-08-23 12:56:58 -04:00
parent 477f7a378b
commit bd816a6599

View File

@ -83,7 +83,7 @@ class ThermalPrinter():
# self.p.text("" + " "*(32-this_line_width))
else:
# self.p.text(" ")
todo_text_max_len = 32-(len(x[0])+1)
todo_text_max_len = 32-(len(x[0]))
todo_text = textwrap.wrap(x[1], todo_text_max_len)
# t_text = textwrap.wrap()
@ -95,7 +95,9 @@ class ThermalPrinter():
# self.p.text(" ")
# self.p.text( (" "*(32-(len(x[0]))))+t+"\n" )
self.p.text(' '*(32-len(x[0])-len(t))+t+"\n" )
# self.p.text(' '*(32-len(x[0])-len(t))+t+"\n" )
self.p.text(' '*(32-len(t))+t+"\n" )
#32-len(x[0])len(text)