From 769146c2b9004ddbe9981f6a3da62dcc0ee6c22a Mon Sep 17 00:00:00 2001 From: manetta Date: Thu, 14 Mar 2019 17:18:57 +0100 Subject: [PATCH] end line --- printer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/printer.py b/printer.py index 5ba683a..625a7f8 100755 --- a/printer.py +++ b/printer.py @@ -108,9 +108,10 @@ def printNow(query, results, results_count): print('\n | \n', file=print_pointer, flush=True) sleep(3) - print("\n\nThese are the first 5 results that the algorithm selected.\n", file=print_pointer, flush=True) current_count += 1 + end_line = insert_linebreaks('These are the first 5 results that the algorithm selected.', 35) + print("\n\n{}\n".format(end_line), file=print_pointer, flush=True) print(escpos['paperfeed_1l'], file=print_pointer, flush=True) print(escpos['paperfeed_1l'], file=print_pointer, flush=True) print(escpos['paperfeed_1l'], file=print_pointer, flush=True)