From fb4d768375ad6892f52c8b9c221655b835a3c46e Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Sun, 22 Nov 2020 19:01:41 +0100 Subject: [PATCH] fix for cheap line printers eating first char --- screenless/bureau/bureau.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenless/bureau/bureau.py b/screenless/bureau/bureau.py index 484d4e2..e658439 100644 --- a/screenless/bureau/bureau.py +++ b/screenless/bureau/bureau.py @@ -442,7 +442,7 @@ class Bureau(object): print on Thermal Line 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 prn.text(text + "\r\n\r\n") if cut: