Skip to content

Commit 1c99af1

Browse files
author
Hugo Osvaldo Barrera
authored
Merge pull request #67 from jdhaene/master
Optimise Code128 length
2 parents 6f4517d + 768a215 commit 1c99af1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

barcode/codex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def look_next():
179179
digits += 1
180180
else:
181181
break
182-
return digits > 3
182+
return digits > 3 and (digits%2) == 0
183183

184184
codes = []
185185
if self._charset == 'C' and not char.isdigit():

0 commit comments

Comments
 (0)