From 560e3f81532f0084b5e69525f4b3f95033bbc073 Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Mon, 9 Nov 2009 11:21:52 +0000 Subject: [PATCH] Bugzilla 48032: moved xml:space attribute from up to 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 --- src/java/org/apache/fop/render/intermediate/IFSerializer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5