Browse Source

Pull request #484: REPORT-34320 块标签前紧跟着的块标签含文本且文本尾部不是空格时会多出空白行

Merge in CORE/base-third from ~HUGH.C/base-third:release/10.0 to release/10.0

* commit '8ad896e4e95e63af5aaec171424b809a7a939f78':
  REPORT-34320 块标签前的块标签含文本且文本尾部不是空格时会多出空白行
release/10.0
Hugh.C 4 years ago
parent
commit
fc9f34d537
  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