aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-10-21 06:40:42 -0400
committerB. Watson <urchlay@slackware.uk>2026-10-21 06:40:42 -0400
commit4a0af221b7600328e1c62b5cea9b7be891132244 (patch)
treee96454dc7b081291dde29a0d2cf0b73ced85baf0
parent5d4d0f28ced2c4cd7f4354458b279a25612753a2 (diff)
downloadgreypool-4a0af221b7600328e1c62b5cea9b7be891132244.tar.gz
Actually print mono HTML pages with the --mono option.
-rwxr-xr-xgreypool18
1 files 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 {
<html>
<head>
<meta name="Generator" content="$SELF/$VERSION">
-<style>
-EOF
- print_css();
- print <<EOF;
-</style>
-<title>
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 "</title>\n</head>\n<body>\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<directory>
@@ -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<just> the HTML table (no header, body tag, etc).
-Suitable for embedding in another HTML page.
+Like B<--html>, but I<just> the HTML table (no header, stylesheet,
+body tag, etc). Suitable for embedding in another HTML page.
=item B<-C>, B<--csv>