poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cen...@apache.org
Subject svn commit: r1689794 - /poi/trunk/src/ooxml/java/org/apache/poi/dev/OOXMLPrettyPrint.java
Date Wed, 08 Jul 2015 05:57:32 GMT
Author: centic
Date: Wed Jul  8 05:57:32 2015
New Revision: 1689794

URL: http://svn.apache.org/r1689794
Log:
OOXMLPrettyPrint: Populate the standalone-attribute always to avoid differences in the resulting
XML files from Excel and POI

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/dev/OOXMLPrettyPrint.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/dev/OOXMLPrettyPrint.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/dev/OOXMLPrettyPrint.java?rev=1689794&r1=1689793&r2=1689794&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/dev/OOXMLPrettyPrint.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/dev/OOXMLPrettyPrint.java Wed Jul  8 05:57:32
2015
@@ -108,6 +108,7 @@ public class OOXMLPrettyPrint {
             try {
                 if(name.endsWith(".xml") || name.endsWith(".rels")) {
                     Document document = documentBuilder.parse(new InputSource(file.getInputStream(entry)));
+                    document.setXmlStandalone(true);
                     pretty(document, out, 2);
                 } else {
                     System.out.println("Not pretty-printing non-XML file " + name);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message