From 4a0af221b7600328e1c62b5cea9b7be891132244 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 21 Oct 2026 06:40:42 -0400 Subject: Actually print mono HTML pages with the --mono option. --- greypool | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/greypool b/greypool index 073512f..7dd8b04 100755 --- a/greypool +++ b/greypool @@ -637,13 +637,13 @@ sub print_report_header { - - EOF + if($color_output) { + print "<style>\n"; + print_css(); + print "</style>\n"; + } + print "<title>\n"; } print "Repology status report for $email ($repo repository)\n\n"; print "\n\n\n" if $html; @@ -795,7 +795,7 @@ tty device (e.g. not redirected to a file). =item B<-m>, B<--mono> B<--no-color>, B<--no-colour> Do no colorize the output, even if stdout is a terminal. This also -produces monochrome HTML pages, with the B<-h> / B<--html> option. +produces monochrome (unstyled) HTML pages, with the B<-h> / B<--html> option. =item B<-C>, B<--config-dir> I @@ -823,8 +823,8 @@ is not a web designer and doesn't want to be one. =item B<-H>, B<--html-fragment> -Like B<--html>, but I the HTML table (no header, body tag, etc). -Suitable for embedding in another HTML page. +Like B<--html>, but I the HTML table (no header, stylesheet, +body tag, etc). Suitable for embedding in another HTML page. =item B<-C>, B<--csv> -- cgit v1.2.3