Browse Source

REPORT-8403 10.0html解析之list标签打印导出空白

10.0
kerry 7 years ago
parent
commit
1840daa739
  1. 3
      fine-itext/src/com/fr/third/v2/lowagie/text/html/ParseIndentAttrUtils.java
  2. 4
      fine-itext/src/com/fr/third/v2/lowagie/text/html/simpleparser/FactoryProperties.java

3
fine-itext/src/com/fr/third/v2/lowagie/text/html/ParseIndentAttrUtils.java

@ -30,6 +30,9 @@ public class ParseIndentAttrUtils {
} }
public static IndentAttribute parsePaddingAttribute(Map map){ public static IndentAttribute parsePaddingAttribute(Map map){
if (map == null){
return new IndentAttribute();
}
IndentAttribute indentAttribute = new IndentAttribute(); IndentAttribute indentAttribute = new IndentAttribute();
Iterator iter = map.entrySet().iterator(); Iterator iter = map.entrySet().iterator();
while (iter.hasNext()) { while (iter.hasNext()) {

4
fine-itext/src/com/fr/third/v2/lowagie/text/html/simpleparser/FactoryProperties.java

@ -158,10 +158,6 @@ public class FactoryProperties {
String ss = props.getPropertyFromChain("div", "width"); String ss = props.getPropertyFromChain("div", "width");
p.setAttribute("width", ss); p.setAttribute("width", ss);
} }
if(props.hasPropertyInChain("div", "height")){
String ss = props.getPropertyFromChain("div", "height");
p.setAttribute("height", ss);
}
p.setHyphenation(getHyphenation(props)); p.setHyphenation(getHyphenation(props));
setParagraphLeading(p, props.getProperty("leading")); setParagraphLeading(p, props.getProperty("leading"));

Loading…
Cancel
Save