fix for cheap line printers eating first char

workspace
Brendan Howell 4 years ago
parent 86f9411b48
commit fb4d768375

@ -442,7 +442,7 @@ class Bureau(object):
print on Thermal Line printer. print on Thermal Line printer.
""" """
prn = self._get_small_printer() prn = self._get_small_printer()
text = textwrap.fill(text, width=self.smprint["textwidth"]) text = "\r\n" + textwrap.fill(text, width=self.smprint["textwidth"])
text += "\r\n" * 2 text += "\r\n" * 2
prn.text(text + "\r\n\r\n") prn.text(text + "\r\n\r\n")
if cut: if cut:

Loading…
Cancel
Save