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));