Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
1.8.6
-
None
-
None
Description
text between elements ending with empty line or white spaces is trimmed. This is the test case that should pass:
import groovy.xml.* def xml = new XmlParser().parseText("<a>x \n\t </a>") assert "x \n\t " == xml.text()
Note, that XmlSlurper works fine:
import groovy.xml.* def xml = new XmlSlurper().parseText("<a>x \n\t </a>") assert "x \n\t " == xml.text()