Browse Source

REPORT-34320 块标签前的块标签含文本且文本尾部不是空格时会多出空白行

release/10.0
Hugh.C 4 years ago
parent
commit
fb9a7ffede
  1. 3
      fine-itext/src/main/java/com/fr/third/v2/lowagie/text/html/simpleparser/HTMLWorker.java

3
fine-itext/src/main/java/com/fr/third/v2/lowagie/text/html/simpleparser/HTMLWorker.java

@ -727,7 +727,8 @@ public class HTMLWorker implements SimpleXMLDocHandler, DocListener {
currentParagraph.add(chunk);
return;
}
if (content.trim().length() == 0 && content.indexOf(' ') < 0) {
if (content.trim().length() == 0 && null == currentParagraph) {
return;
}

Loading…
Cancel
Save