Permalink
Browse files

Fixes issue #908

  • Loading branch information...
srowen committed Nov 14, 2017
1 parent 72a21d1 commit ea3b04289d4d196721134f6f50a74090abc7b646
Showing with 4 additions and 1 deletion.
  1. +4 −1 core/src/main/java/com/google/zxing/datamatrix/encoder/HighLevelEncoder.java
@@ -188,7 +188,10 @@ public static String encodeHighLevel(String msg,
int len = context.getCodewordCount();
context.updateSymbolInfo();
int capacity = context.getSymbolInfo().getDataCapacity();
if (len < capacity && encodingMode != ASCII_ENCODATION && encodingMode != BASE256_ENCODATION) {
if (len < capacity &&
encodingMode != ASCII_ENCODATION &&
encodingMode != BASE256_ENCODATION &&
encodingMode != EDIFACT_ENCODATION) {
context.writeCodeword('\u00fe'); //Unlatch (254)
}
//Padding

0 comments on commit ea3b042

Please sign in to comment.