You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2015/07/08 07:57:32 UTC

svn commit: r1689794 - /poi/trunk/src/ooxml/java/org/apache/poi/dev/OOXMLPrettyPrint.java

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