mirror of
https://github.com/apache/xmlgraphics-fop.git
synced 2024-09-14 00:01:49 +02:00
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:
parent
12a56bea4e
commit
560e3f8153
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user