Skip to content

Commit

Permalink
More conservative approach
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed May 10, 2024
1 parent bca302d commit 878d50c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1659,11 +1659,11 @@ public StringBuilder toTEITextPiece(StringBuilder buffer,
} else if (type.equals("url")) {
String normalizeDehyphenizeText = LayoutTokensUtil.normalizeDehyphenizeText(clusterTokens.subList(matchingPosition.start, matchingPosition.end));
ref = generateURLRef(normalizeDehyphenizeText, calloutTokens, config.isGenerateTeiCoordinates("ref"));
}

//We might need to add a space if it's in the layout tokens
if (CollectionUtils.isNotEmpty(before) && StringUtils.equalsAnyIgnoreCase(Iterables.getLast(before).getText(), " ", "\n")) {
curParagraph.appendChild(new Text(" "));
//We might need to add a space if it's in the layout tokens
if (CollectionUtils.isNotEmpty(before) && StringUtils.equalsAnyIgnoreCase(Iterables.getLast(before).getText(), " ", "\n")) {
curParagraph.appendChild(new Text(" "));
}
}

pos = matchingPosition.end;
Expand Down

0 comments on commit 878d50c

Please sign in to comment.