diff --git a/application/thermal_print.py b/application/thermal_print.py index 2b863b9..e8981a4 100644 --- a/application/thermal_print.py +++ b/application/thermal_print.py @@ -94,7 +94,12 @@ class ThermalPrinter(): # for s in range((len(x[0])+1)): # self.p.text(" ") - self.p.text( (" "*(32-(len(x[0])+1)))+t+"\n" ) + # self.p.text( (" "*(32-(len(x[0]))))+t+"\n" ) + self.p.text(' '*(32-len(x[0])-len(t))+t+"\n" ) + + + #32-len(x[0])len(text) + # self.p.text(t + "\n") @@ -197,7 +202,7 @@ class ThermalPrinter(): def _parse_todos(self, data): out = [] for x in data: - out.append(["O " + x["time"], x["text"]]) + out.append(["O " + x["time"] + " ", x["text"]]) return out #Return: ["□ 1:00pm to 2:00pm", "Read a book"]