|
|
@ -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): |
|
|
|