fine tune formula
This commit is contained in:
parent
477f7a378b
commit
bd816a6599
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user