You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by mu...@apache.org on 2007/10/04 15:50:20 UTC
svn commit: r581904 -
/xml/security/trunk/src/org/apache/xml/security/transforms/Transform.java
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);
}