From fb9a7ffeded14e2a7bceab442fb33f9c258c142f Mon Sep 17 00:00:00 2001 From: "Hugh.C" Date: Tue, 7 Jul 2020 15:20:58 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-34320=20=E5=9D=97=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E5=89=8D=E7=9A=84=E5=9D=97=E6=A0=87=E7=AD=BE=E5=90=AB=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E4=B8=94=E6=96=87=E6=9C=AC=E5=B0=BE=E9=83=A8=E4=B8=8D?= =?UTF-8?q?=E6=98=AF=E7=A9=BA=E6=A0=BC=E6=97=B6=E4=BC=9A=E5=A4=9A=E5=87=BA?= =?UTF-8?q?=E7=A9=BA=E7=99=BD=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fr/third/v2/lowagie/text/html/simpleparser/HTMLWorker.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fine-itext/src/main/java/com/fr/third/v2/lowagie/text/html/simpleparser/HTMLWorker.java b/fine-itext/src/main/java/com/fr/third/v2/lowagie/text/html/simpleparser/HTMLWorker.java index 5135f67bd..c16dd77f8 100644 --- a/fine-itext/src/main/java/com/fr/third/v2/lowagie/text/html/simpleparser/HTMLWorker.java +++ b/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; }