Skip to content

Commit 3d66afc

Browse files
committed
WCAG. Add spaces to text chunks
1 parent 0f08302 commit 3d66afc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • wcag-validation/src/main/java/org/verapdf/gf/model/factory/chunks

wcag-validation/src/main/java/org/verapdf/gf/model/factory/chunks/ChunkParser.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -834,10 +834,10 @@ private TextPieces parseTextShowArgument(COSBase argument) {
834834
}
835835
}
836836
}
837-
if (StaticStorages.getIsAddSpacesBetweenTextPieces()) {
838-
double threshold = graphicsState.getTextState().getTextFontSize() * TextChunkUtils.TEXT_LINE_SPACE_RATIO;
839-
textPieces.addSpaces(threshold);
840-
}
837+
}
838+
if (StaticStorages.getIsAddSpacesBetweenTextPieces()) {
839+
double threshold = graphicsState.getTextState().getTextFontSize() * TextChunkUtils.TEXT_LINE_SPACE_RATIO;
840+
textPieces.addSpaces(threshold);
841841
}
842842
return textPieces;
843843
}

0 commit comments

Comments
 (0)