From a05a9cae0756b1ebcb1f29726a172b0ac0f43356 Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Thu, 11 Jul 2024 14:18:28 -0600 Subject: [PATCH] logformatter: tweaks to pass html tidy Plus, I think my ampersand-quot change earlier this month caused problems for firefox. We no longer need it (pull-option does not need the funky double-quoted curly-brace string), so, remove it. Signed-off-by: Ed Santiago --- contrib/cirrus/logformatter | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/contrib/cirrus/logformatter b/contrib/cirrus/logformatter index 36818aeee7..78ac1850d7 100755 --- a/contrib/cirrus/logformatter +++ b/contrib/cirrus/logformatter @@ -33,7 +33,7 @@ $| = 1; # Stylesheet for highlighting or de-highlighting parts of lines our $CSS = <<'END_CSS'; /* wrap long lines - don't require user to scroll right */ -pre { line-break: normal; overflow-wrap: normal; white-space: pre-wrap; } +.tt { font-family: monospace; line-break: normal; overflow-wrap: normal; white-space: pre-wrap; } /* synopsis table at top */ table.synopsis { border: none; border-collapse: collapse; margin-left: 2em; margin-top: 2ex; } @@ -246,7 +246,7 @@ END_HTML # When running in cirrus, we have the commit SHA $git_commit = $ENV{CIRRUS_CHANGE_IN_REPO}; - print { $out_fh } "
 \n";
+    print { $out_fh } "
\n"; # Assume rootful prompt, check for rootless (here and in log itself, below) my $Prompt = '#'; @@ -581,7 +581,7 @@ END_HTML $subtest_status = 'passed'; # until proven otherwise $subtest_name = ''; - print { $out_fh } "
\n
\n
\n";
+            print { $out_fh } "\n
\n
\n"; # Always show timestamp at start of each new test $previous_timestamp = ''; next LINE; @@ -595,8 +595,6 @@ END_HTML my ($full_path, $remote, $options, $args) = ($1, $2||'', $3, $6); $options =~ s/^\s+//; - # July 2024: "" in composefs pull-option confuses hovertext - $options =~ s/\"//g; # Separate each '--foo bar' with newlines for readability $options =~ s/ --/\n--/g; qq{podman$remote [options]$args}; @@ -683,7 +681,7 @@ END_HTML $subtest_name .= " " if $subtest_name; $subtest_name .= $2; my $id = make_id($subtest_name, 'anchor'); - $line = "

$line

"; + $line = "

$line

"; # Special case for tests that fail outside of a Describe() # block, e.g., global After/BeforeEach. We still want to @@ -741,7 +739,7 @@ END_HTML print { $out_fh } "\n"; } - print { $out_fh } "
\n"; + print { $out_fh } " \n"; # Did we find a cirrus task? Link back. if ($cirrus_task) {