From 3d7980146429af20ffe54a5f78a362ef777373bb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Mar 2026 20:29:36 +0000 Subject: [PATCH] Fix JUnit HTML reports to preserve whitespace in failure messages - Add `white-space: pre-wrap` CSS rule for `code` elements so spaces and newlines are preserved in browser rendering - Wrap @message output in a `` element so the failure message text also benefits from the whitespace preservation CSS rule Fixes: https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/issues/3723 Agent-Logs-Url: https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/sessions/70ecfbb4-6cee-4f8f-a49b-c8496722fff2 Co-authored-by: Federico Jeanne --- products/eclipse-junit-tests/src/main/scripts/JUNIT.XSL | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/products/eclipse-junit-tests/src/main/scripts/JUNIT.XSL b/products/eclipse-junit-tests/src/main/scripts/JUNIT.XSL index 489e7b86b1c..30a16efa937 100644 --- a/products/eclipse-junit-tests/src/main/scripts/JUNIT.XSL +++ b/products/eclipse-junit-tests/src/main/scripts/JUNIT.XSL @@ -97,6 +97,9 @@ .Properties { text-align:right; } + code { + white-space: pre-wrap; + }