Add null terminator when printing barcode of type A, issue #58

This commit is contained in:
Davis Goglin 2016-03-07 16:20:04 -08:00
parent d9ffb03089
commit 250455ae23
1 changed files with 3 additions and 0 deletions

View File

@ -440,6 +440,9 @@ class Escpos(object):
else:
raise BarcodeCodeError()
if function_type.upper() == "A":
self._raw("\x00")
def text(self, txt):
""" Print alpha-numeric text