We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a4ae76 commit dbab537Copy full SHA for dbab537
layout/src/main/java/com/itextpdf/layout/renderer/TextRenderer.java
@@ -267,7 +267,8 @@ public LayoutResult layout(LayoutContext layoutContext) {
267
268
Glyph currentGlyph = text.get(ind);
269
if (noPrint(currentGlyph)) {
270
- if (splitCharacters.isSplitCharacter(text, ind + 1) &&
+ if (ind + 1 == text.end ||
271
+ splitCharacters.isSplitCharacter(text, ind + 1) &&
272
TextUtil.isSpaceOrWhitespace(text.get(ind + 1))) {
273
nonBreakablePartEnd = ind;
274
break;
0 commit comments