FOP fix from bug #39086

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@450068 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2006-09-26 14:54:45 +00:00
parent 0989d2323a
commit a2d54c0fe2
1 changed files with 8 additions and 4 deletions

View File

@ -815,10 +815,14 @@ public class WordDocument
int marginLeft = sep._dxaLeft/20;
int marginRight = sep._dxaRight/20;
return "<fo:region-" + where + " display-align=\"" + align + "\" extent=\"" +
extent + "pt\" padding-left=\"" + marginLeft + "pt\" padding-right=\"" +
marginRight + "pt\" padding-top=\"" + marginTop + "pt\" padding-bottom=\"" +
marginBottom + "pt\" " + region + "/>";
return "<fo:region-" + where + " display-align=\"" + align + "\" extent=\""
+ extent + "pt\" "+region+"/>";
// org.apache.fop.fo.expr.PropertyException:
// Border and padding for region "xsl-region-before" must be '0'
// (See 6.4.13 in XSL 1.0).
// extent + "pt\" padding-left=\"" + marginLeft + "pt\" padding-right=\"" +
// marginRight + "pt\" padding-top=\"" + marginTop + "pt\" padding-bottom=\"" +
// marginBottom + "pt\" " + region + "/>";
}
private String createRegion(String where, String name)