mirror of
https://github.com/python-escpos/python-escpos
synced 2025-10-23 09:30:00 +00:00
Added test for cut without feed, fixed raw code for it
This commit is contained in:
committed by
Patrick Kanzler
parent
9bc3b30a60
commit
9e47ff2505
@@ -587,8 +587,12 @@ class Escpos(object):
|
||||
:param feed: print and feed before cutting. default: true
|
||||
:raises ValueError: if mode not in ('FULL', 'PART')
|
||||
"""
|
||||
if feed:
|
||||
self.print_and_feed(6)
|
||||
|
||||
if not feed:
|
||||
self._raw(GS + b'V' + six.int2byte(66) + b'\x00')
|
||||
return
|
||||
|
||||
self.print_and_feed(6)
|
||||
|
||||
mode = mode.upper()
|
||||
if mode not in ('FULL', 'PART'):
|
||||
|
||||
Reference in New Issue
Block a user