Merge pull request #435 from brendanhowell/patch-1

Update escpos.py
This commit is contained in:
Patrick Kanzler 2021-10-30 17:58:35 +02:00 committed by GitHub
commit 53aab73ffc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -539,7 +539,7 @@ class Escpos(object):
if count > 0: if count > 0:
self.text('\n' * count) self.text('\n' * count)
def block_text(self, txt, font=None, columns=None): def block_text(self, txt, font="0", columns=None):
""" Text is printed wrapped to specified columns """ Text is printed wrapped to specified columns
Text has to be encoded in unicode. Text has to be encoded in unicode.