From 93bb115d9ab76915a1dd5865d09cc5444ddb5723 Mon Sep 17 00:00:00 2001 From: manetta Date: Wed, 13 Mar 2019 13:03:40 +0100 Subject: [PATCH] adjusting line length --- printer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/printer.py b/printer.py index da41ab1..137c10e 100755 --- a/printer.py +++ b/printer.py @@ -85,16 +85,16 @@ def printNow(query, results, results_count): // ''' print(linebreak, file=stdout, flush=True) # print line break ascii art print('\n', file=stdout, flush=True) - title = insert_linebreaks(document['name'], 46) + title = insert_linebreaks(document['name'], 40) print(title, file=stdout, flush=True) # print the document name print('\n', file=stdout, flush=True) # start of sentence - part = insert_linebreaks(part, 46) - print(part, escpos['bold'], file=stdout, flush=True) # print current part of sentence + part = insert_linebreaks(part, 40) + print(part, file=stdout, flush=True) # print current part of sentence if i + 1 != len(sentence_splitted): # if this part is not the last one - print(match, escpos['reset'], file=stdout, flush=True) # print query + print(escpos['bold'], match, escpos['reset'], file=stdout, flush=True) # print query # line breaker after each sentence if i + 1 == len(sentence_splitted):