]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bugzilla 48032: moved xml:space attribute from <text> up to <page-sequence> element...
authorVincent Hennebert <vhennebert@apache.org>
Mon, 9 Nov 2009 11:21:52 +0000 (11:21 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Mon, 9 Nov 2009 11:21:52 +0000 (11:21 +0000)
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

index 2401b12026c7d2efc0889420aefa8511e1112fb1..37806cb8efb7a07b81d74a37c0da61ae3db5bd64 100644 (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) {