Bugzilla 48032: moved xml:space attribute from <text> up to <page-sequence> element in order to save a bit on disk space

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@834020 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Vincent Hennebert 2009-11-09 11:21:52 +00:00
parent 12a56bea4e
commit 560e3f8153

View File

@ -219,6 +219,7 @@ public class IFSerializer extends AbstractXMLWritingIFDocumentHandler
atts.addAttribute(XML_NAMESPACE, "lang", "xml:lang", XMLUtil.CDATA,
XMLUtil.toRFC3066(lang));
}
XMLUtil.addAttribute(atts, XMLConstants.XML_SPACE, "preserve");
addForeignAttributes(atts);
handler.startElement(EL_PAGE_SEQUENCE, atts);
if (this.getUserAgent().isAccessibilityEnabled()) {
@ -540,7 +541,6 @@ public class IFSerializer extends AbstractXMLWritingIFDocumentHandler
int[] dx, String text) throws IFException {
try {
AttributesImpl atts = new AttributesImpl();
XMLUtil.addAttribute(atts, XMLConstants.XML_SPACE, "preserve");
addAttribute(atts, "x", Integer.toString(x));
addAttribute(atts, "y", Integer.toString(y));
if (letterSpacing != 0) {