diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2009-11-09 11:21:52 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2009-11-09 11:21:52 +0000 |
commit | 560e3f81532f0084b5e69525f4b3f95033bbc073 (patch) | |
tree | 0183b9e60d2f3115054e86c8c08467bd2af6df7a | |
parent | 12a56bea4e14d05335fd990128b3b275195fdc2c (diff) | |
download | xmlgraphics-fop-560e3f81532f0084b5e69525f4b3f95033bbc073.tar.gz xmlgraphics-fop-560e3f81532f0084b5e69525f4b3f95033bbc073.zip |
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
-rw-r--r-- | src/java/org/apache/fop/render/intermediate/IFSerializer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/render/intermediate/IFSerializer.java b/src/java/org/apache/fop/render/intermediate/IFSerializer.java index 2401b1202..37806cb8e 100644 --- a/src/java/org/apache/fop/render/intermediate/IFSerializer.java +++ b/src/java/org/apache/fop/render/intermediate/IFSerializer.java @@ -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) { |