RFR(JDK 14/java.xml) 8223291: Whitespace is added to CDATA tags when using OutputKeys.INDENT to format XML
huizhe.wang at oracle.com
Mon Jul 1 18:46:54 UTC 2019
Please review a fix to xml pretty print. This is a regression introduced
during the JDK 9 development. CDATA is marked up to be interpreted
literally as textual data, in other words, it's still character data.
The processor therefore shall treat it as text data. The content of
"abc<![CDATA[ & ]]>xyz" should be "abc & xyz", not " abc\n & \n
xyz\n" as that before this fix.
More information about the core-libs-dev