From 7219427199d1ba1ed7fe0d96f7818df856370789 Mon Sep 17 00:00:00 2001 From: "Hugh.C" Date: Tue, 8 Sep 2020 17:21:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=E4=BB=BB=E5=8A=A1=EF=BC=8C?= =?UTF-8?q?=E5=90=88=E4=BB=A3=E7=A0=81=E9=94=99=E8=AF=AF=EF=BC=88=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E4=BB=A3=E7=A0=81=E6=AE=8B=E7=95=99=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../text/html/simpleparser/FactoryProperties.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/fine-itext/src/main/java/com/fr/third/v2/lowagie/text/html/simpleparser/FactoryProperties.java b/fine-itext/src/main/java/com/fr/third/v2/lowagie/text/html/simpleparser/FactoryProperties.java index 6b17e07c6..a64b5c778 100644 --- a/fine-itext/src/main/java/com/fr/third/v2/lowagie/text/html/simpleparser/FactoryProperties.java +++ b/fine-itext/src/main/java/com/fr/third/v2/lowagie/text/html/simpleparser/FactoryProperties.java @@ -132,15 +132,6 @@ public class FactoryProperties { } public static void createParagraph(Paragraph p, ChainedProperties props) { - String value = props.getProperty("align"); - if (value != null) { - if (value.equalsIgnoreCase("center")) - p.setAlignment(Element.ALIGN_CENTER); - else if (value.equalsIgnoreCase("right")) - p.setAlignment(Element.ALIGN_RIGHT); - else if (value.equalsIgnoreCase("justify")) - p.setAlignment(Element.ALIGN_JUSTIFIED); - } Map bgAttrMap = BackgroundUtil.parseBgAttr4BlockTag(props); if (null != bgAttrMap) { for (Map.Entry entry : bgAttrMap.entrySet()) { @@ -174,7 +165,7 @@ public class FactoryProperties { p.setHyphenation(getHyphenation(props)); setParagraphLeading(p, props.getProperty("leading")); - value = props.getProperty("before"); + String value = props.getProperty("before"); if (value != null) { try { p.setSpacingBefore(Float.parseFloat(value));