|
|
@ -137,6 +137,9 @@ public class FactoryProperties { |
|
|
|
if(props.hasPropertyInChain("div", "background")){ |
|
|
|
if(props.hasPropertyInChain("div", "background")){ |
|
|
|
p.setBackground(props.getPropertyFromChain("div", "background")); |
|
|
|
p.setBackground(props.getPropertyFromChain("div", "background")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(props.hasProperty("line-height")){ |
|
|
|
|
|
|
|
p.setAttribute("line-height", props.getProperty("line-height")); |
|
|
|
|
|
|
|
} |
|
|
|
for(String margin : HtmlConstants.MARGIN){ |
|
|
|
for(String margin : HtmlConstants.MARGIN){ |
|
|
|
if(props.hasPropertyInChain("div", margin)){ |
|
|
|
if(props.hasPropertyInChain("div", margin)){ |
|
|
|
String ss = props.getPropertyFromChain("div", margin); |
|
|
|
String ss = props.getPropertyFromChain("div", margin); |
|
|
@ -419,6 +422,7 @@ public class FactoryProperties { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
h.put("leading", v + ",0"); |
|
|
|
h.put("leading", v + ",0"); |
|
|
|
|
|
|
|
h.put("line-height", ss); |
|
|
|
} else if (key.equals(Markup.CSS_KEY_TEXTALIGN)) { |
|
|
|
} else if (key.equals(Markup.CSS_KEY_TEXTALIGN)) { |
|
|
|
String ss = prop.getProperty(key).trim().toLowerCase(); |
|
|
|
String ss = prop.getProperty(key).trim().toLowerCase(); |
|
|
|
h.put("align", ss); |
|
|
|
h.put("align", ss); |
|
|
|