]> source.dussan.org Git - poi.git/commitdiff
OOXMLPrettyPrint: Populate the standalone-attribute always to avoid differences in...
authorDominik Stadler <centic@apache.org>
Wed, 8 Jul 2015 05:57:32 +0000 (05:57 +0000)
committerDominik Stadler <centic@apache.org>
Wed, 8 Jul 2015 05:57:32 +0000 (05:57 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1689794 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/dev/OOXMLPrettyPrint.java

index 97e16f75895e60122d36d349b2d298e1d884c13f..a05af6b4d87c7ece10e5d3e1d009b6fb2758b5ac 100644 (file)
@@ -108,6 +108,7 @@ public class OOXMLPrettyPrint {
             try {\r
                 if(name.endsWith(".xml") || name.endsWith(".rels")) {\r
                     Document document = documentBuilder.parse(new InputSource(file.getInputStream(entry)));\r
+                    document.setXmlStandalone(true);\r
                     pretty(document, out, 2);\r
                 } else {\r
                     System.out.println("Not pretty-printing non-XML file " + name);\r