Change complex if identation.

This commit is contained in:
csoft2k 2017-07-26 09:39:14 +02:00
parent efd698525d
commit 67a834893f

View File

@ -718,7 +718,9 @@ class Escpos(object):
elif ctl.upper() == "CR": elif ctl.upper() == "CR":
self._raw(CTL_CR) self._raw(CTL_CR)
elif ctl.upper() == "HT": elif ctl.upper() == "HT":
if not (0 <= count <= 32 and 1 <= tab_size <= 255 and count * tab_size < 256): if not (0 <= count <= 32 and
1 <= tab_size <= 255 and
count * tab_size < 256):
raise TabPosError() raise TabPosError()
else: else:
# Set tab positions # Set tab positions