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 34878d8f01
commit 9d50165790

View File

@ -815,10 +815,14 @@ public class WordDocument
int marginLeft = sep._dxaLeft/20; int marginLeft = sep._dxaLeft/20;
int marginRight = sep._dxaRight/20; int marginRight = sep._dxaRight/20;
return "<fo:region-" + where + " display-align=\"" + align + "\" extent=\"" + return "<fo:region-" + where + " display-align=\"" + align + "\" extent=\""
extent + "pt\" padding-left=\"" + marginLeft + "pt\" padding-right=\"" + + extent + "pt\" "+region+"/>";
marginRight + "pt\" padding-top=\"" + marginTop + "pt\" padding-bottom=\"" + // org.apache.fop.fo.expr.PropertyException:
marginBottom + "pt\" " + region + "/>"; // 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) private String createRegion(String where, String name)