[jdk11u-dev] RFR: 8223291: Whitespace is added to CDATA tags when using OutputKeys.INDENT to format XML

Tyler Steele tsteele at openjdk.org
Mon Nov 14 22:30:30 UTC 2022


Backporting this change to jdk11. I noticed this was also requested by @jocwurs as I was working on it.

Functionally this is a clean backport. But, there are some differences that will trip up the bots.
- Copyright years are sometimes newer in the current jdk11u. I kept the newer year.
- I merged two lists of bug ids into one--keeping all bug-ids.
- Git seems to treat `test/.../OutputPropertiesTest.java` as a new file in these changes, but not in the old ones. This wasn't a conflict, but it shows up differently for me on GitHub when I compare it to the changes in the original commit.

Testing: OutputPropertiesTest passes.

I'll wait for a review before requesting this in JBS.

-------------

Commit messages:
 - 8223291: Whitespace is added to CDATA tags when using OutputKeys.INDENT to format XML

Changes: https://git.openjdk.org/jdk11u-dev/pull/1521/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=1521&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8223291
  Stats: 166 lines in 8 files changed: 138 ins; 7 del; 21 mod
  Patch: https://git.openjdk.org/jdk11u-dev/pull/1521.diff
  Fetch: git fetch https://git.openjdk.org/jdk11u-dev pull/1521/head:pull/1521

PR: https://git.openjdk.org/jdk11u-dev/pull/1521


More information about the jdk-updates-dev mailing list