Browse Source

Merge pull request #817 in CORE/base-third from bugfix/10.0 to feature/10.0

* commit 'be8e0969eef7631a6f4e0b2f9b31b478605b369b':
  无jira任务,合代码错误(多余代码残留)
research/11.0
superman 4 years ago
parent
commit
06b04e4b39
  1. 11
      fine-itext/src/main/java/com/fr/third/v2/lowagie/text/html/simpleparser/FactoryProperties.java

11
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) { 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<String, String> bgAttrMap = BackgroundUtil.parseBgAttr4BlockTag(props); Map<String, String> bgAttrMap = BackgroundUtil.parseBgAttr4BlockTag(props);
if (null != bgAttrMap) { if (null != bgAttrMap) {
for (Map.Entry<String, String> entry : bgAttrMap.entrySet()) { for (Map.Entry<String, String> entry : bgAttrMap.entrySet()) {
@ -174,7 +165,7 @@ public class FactoryProperties {
p.setHyphenation(getHyphenation(props)); p.setHyphenation(getHyphenation(props));
setParagraphLeading(p, props.getProperty("leading")); setParagraphLeading(p, props.getProperty("leading"));
value = props.getProperty("before"); String value = props.getProperty("before");
if (value != null) { if (value != null) {
try { try {
p.setSpacingBefore(Float.parseFloat(value)); p.setSpacingBefore(Float.parseFloat(value));

Loading…
Cancel
Save