Allow space in Code128 CodeSet B (#1658)

Space is a valid character in CodeSet B.
This commit is contained in:
primo-ppcg 2023-06-24 09:54:20 +07:00 committed by GitHub
parent 41592c4b41
commit 7880290d25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;