From 976d88efb19f336887a5e9243c9096fc1003cc49 Mon Sep 17 00:00:00 2001 From: Bill Scales Date: Thu, 14 Aug 2025 13:31:42 +0100 Subject: [PATCH] Improve rendering of multi-line job failure reasons Modify css code-text to preserve white space so a multi-line failure reason retains its formatting and update where it is used to display the job failure reason to avoid adding whitespace Signed-off-by: Bill Scales --- public/css/main.css | 1 + pulpito/templates/job.html | 4 +--- pulpito/templates/run_jobs_table.html | 4 +--- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/public/css/main.css b/public/css/main.css index f5ae181..be6f59d 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -50,6 +50,7 @@ table.link-bare td a:hover { font-family: 'UbuntuMono'; background-color: #eee; padding-left: 25px; + white-space: pre-line; } /* Progress meter */ diff --git a/pulpito/templates/job.html b/pulpito/templates/job.html index 8f13a43..78b6c44 100644 --- a/pulpito/templates/job.html +++ b/pulpito/templates/job.html @@ -119,9 +119,7 @@

{{ job.name }}