Skip to content

Commit

Permalink
Implement workaround for escaping whitespace chars in attribute values
Browse files Browse the repository at this point in the history
While XML attribute values may contain whitespace such as line breaks,
the XML spec [1] dictates that XML processors must replace them with
spaces which causes downstream tools to misrepresent the original value.

[1] w3.org/TR/xml#AVNormalize

Resolves #4174.

(cherry picked from commit 432d556)
  • Loading branch information
marcphilipp committed Dec 11, 2024
1 parent 13a88b4 commit dac61cc
Show file tree
Hide file tree
Showing 2 changed files with 341 additions and 190 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ JUnit repository on GitHub.
[[release-notes-5.11.4-junit-platform-bug-fixes]]
==== Bug Fixes

* ❓
* Escape whitespace characters (such as line breaks) in XML attribute values (such as
exception messages) in the legacy XML report generated by the Console Launcher. This
change ensures the resulting XML files can be processed by downstream tools while
preserving whitespace characters.

[[release-notes-5.11.4-junit-platform-deprecations-and-breaking-changes]]
==== Deprecations and Breaking Changes
Expand Down
Loading

0 comments on commit dac61cc

Please sign in to comment.