From dca9933bfe099482dae3f583011ff7d84ac9f34c Mon Sep 17 00:00:00 2001 From: "Hugh.C" Date: Thu, 18 Jun 2020 09:55:11 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-33908=20HTML=E9=AB=98=E5=BA=A6=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E5=BC=82=E5=B8=B8=EF=BC=88br=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E4=B8=AD=E7=9A=84line-height=E5=B1=9E=E6=80=A7=E5=BA=94?= =?UTF-8?q?=E8=AF=A5=E7=94=9F=E6=95=88=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../third/v2/lowagie/text/html/simpleparser/HTMLWorker.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 74628ff53..2c5e436f2 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 @@ -244,7 +244,8 @@ public class HTMLWorker implements SimpleXMLDocHandler, DocListener { } if (tag.equals(HtmlTags.NEWLINE)) { if (currentParagraph == null) { - currentParagraph = new Paragraph(); + currentParagraph = FactoryProperties + .createParagraph(cprops); } currentParagraph.add(factoryProperties .createChunk("\n", cprops)); @@ -553,8 +554,7 @@ public class HTMLWorker implements SimpleXMLDocHandler, DocListener { } if (tag.equals("a")) { if (currentParagraph == null) { - currentParagraph = FactoryProperties - .createParagraph(cprops); + currentParagraph = new Paragraph(); } boolean skip = false; if (interfaceProps != null) {