santuario-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mul...@apache.org
Subject svn commit: r581904 - /xml/security/trunk/src/org/apache/xml/security/transforms/Transform.java
Date Thu, 04 Oct 2007 13:50:20 GMT
Author: mullan
Date: Thu Oct  4 06:50:20 2007
New Revision: 581904

URL: http://svn.apache.org/viewvc?rev=581904&view=rev
Log:
Fixed Bug 42061 : Method to disable XMLUtils.addReturnToElement

Modified:
    xml/security/trunk/src/org/apache/xml/security/transforms/Transform.java

Modified: xml/security/trunk/src/org/apache/xml/security/transforms/Transform.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src/org/apache/xml/security/transforms/Transform.java?rev=581904&r1=581903&r2=581904&view=diff
==============================================================================
--- xml/security/trunk/src/org/apache/xml/security/transforms/Transform.java (original)
+++ xml/security/trunk/src/org/apache/xml/security/transforms/Transform.java Thu Oct  4 06:50:20
2007
@@ -33,6 +33,7 @@
 import org.apache.xml.security.utils.Constants;
 import org.apache.xml.security.utils.HelperNodeList;
 import org.apache.xml.security.utils.SignatureElementProxy;
+import org.apache.xml.security.utils.XMLUtils;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 import org.w3c.dom.NodeList;
@@ -189,9 +190,9 @@
 
       HelperNodeList contextNodes = new HelperNodeList();
 
-      contextNodes.appendChild(doc.createTextNode("\n"));
+      XMLUtils.addReturnToElement(doc, contextNodes);
       contextNodes.appendChild(contextChild);
-      contextNodes.appendChild(doc.createTextNode("\n"));
+      XMLUtils.addReturnToElement(doc, contextNodes);
 
       return Transform.getInstance(doc, algorithmURI, contextNodes);
    }



Mime
View raw message