mirror of
https://github.com/zxing/zxing.git
synced 2024-11-09 20:44:03 -08:00
Allow space in Code128 CodeSet B (#1658)
Space is a valid character in CodeSet B.
This commit is contained in:
parent
41592c4b41
commit
7880290d25
|
@ -137,7 +137,7 @@ public final class Code128Writer extends OneDimensionalCodeWriter {
|
||||||
break;
|
break;
|
||||||
case CODE_CODE_B:
|
case CODE_CODE_B:
|
||||||
// allows no ascii below 32 (terminal symbols)
|
// allows no ascii below 32 (terminal symbols)
|
||||||
if (c <= 32) {
|
if (c < 32) {
|
||||||
throw new IllegalArgumentException("Bad character in input for forced code set B: ASCII value=" + (int) c);
|
throw new IllegalArgumentException("Bad character in input for forced code set B: ASCII value=" + (int) c);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue