Fixes issue #908

This commit is contained in:
Sean Owen 2017-11-13 19:36:51 -06:00
parent 72a21d158b
commit ea3b04289d

View file

@ -188,7 +188,10 @@ public final class HighLevelEncoder {
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