svn commit: r765093 - /lenya/branches/BRANCH_2_0_X/src/java/org/apache/lenya/xml/DocumentHelper.java

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Wed Apr 15 09:36:07 2009
New Revision: 765093

URL: http://svn.apache.org/viewvc?rev=765093&view=rev
Log:
Don't indent XML documents when writing. Fixes bug 47025.

Modified:
    lenya/branches/BRANCH_2_0_X/src/java/org/apache/lenya/xml/DocumentHelper.java

Modified: lenya/branches/BRANCH_2_0_X/src/java/org/apache/lenya/xml/DocumentHelper.java
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_0_X/src/java/org/apache/lenya/xml/DocumentHelper.java?rev=765093&r1=765092&r2=765093&view=diff
==============================================================================
--- lenya/branches/BRANCH_2_0_X/src/java/org/apache/lenya/xml/DocumentHelper.java (original)
+++ lenya/branches/BRANCH_2_0_X/src/java/org/apache/lenya/xml/DocumentHelper.java Wed Apr 15 09:36:07 2009
@@ -274,7 +274,7 @@
             throws TransformerConfigurationException {
         TransformerFactory factory = TransformerFactory.newInstance();
         Transformer transformer = factory.newTransformer();
-        transformer.setOutputProperty(OutputKeys.INDENT, "yes");
+        transformer.setOutputProperty(OutputKeys.INDENT, "no");
         transformer.setOutputProperty(OutputKeys.METHOD, "xml");
 
         if (documentType != null) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.