New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pod2html output concerns #10290
Comments
From choward@indicium.usCreated by choward@indicium.usI frequently use pod2html to generate HTML reports from POD-based work <body style="background-color: white"> This is not a good default, because pod2html does not also include any Obviously, a pod2html user can remove this line after generating the Perl Info
|
From @apFixed by the included patch. (Sorry, couldn’t yet figure out how lib/Pod/Html.pm | 6 ++---- Inline Patchdiff --git a/lib/Pod/Html.pm b/lib/Pod/Html.pm
index 6174dd7..8cd981b 100644
--- a/lib/Pod/Html.pm
+++ b/lib/Pod/Html.pm
@@ -455,14 +455,12 @@ sub pod2html {
$Title = html_escape($Title);
my $csslink = '';
- my $bodystyle = ' style="background-color: white"';
- my $tdstyle = ' style="background-color: #cccccc"';
+ my $tdstyle = ' style="background-color: #ccc; color: #000"';
if ($Css) {
$csslink = qq(\n<link rel="stylesheet" href="$Css" type="text/css" />);
$csslink =~ s,\\,/,g;
$csslink =~ s,(/.):,$1|,;
- $bodystyle = '';
$tdstyle = '';
}
@@ -484,7 +482,7 @@ END_OF_BLOCK
<link rev="made" href="mailto:$Config{perladmin}" />
</head>
-<body$bodystyle>
+<body>
$block
END_OF_HEAD
diff --git a/lib/Pod/t/htmlescp.t b/lib/Pod/t/htmlescp.t
index 95942cd..acabf48 100644
--- a/lib/Pod/t/htmlescp.t
+++ b/lib/Pod/t/htmlescp.t
@@ -22,7 +22,7 @@ __DATA__
<link rev="made" href="mailto:[PERLADMIN]" />
</head>
-<body style="background-color: white">
+<body>
<!-- INDEX BEGIN -->
diff --git a/lib/Pod/t/htmllink.t b/lib/Pod/t/htmllink.t
index ab11796..19baa62 100644
--- a/lib/Pod/t/htmllink.t
+++ b/lib/Pod/t/htmllink.t
@@ -22,7 +22,7 @@ __DATA__
<link rev="made" href="mailto:[PERLADMIN]" />
</head>
-<body style="background-color: white">
+<body>
<!-- INDEX BEGIN -->
diff --git a/lib/Pod/t/htmlview.t b/lib/Pod/t/htmlview.t
index 03fe6e5..c445081 100644
--- a/lib/Pod/t/htmlview.t
+++ b/lib/Pod/t/htmlview.t
@@ -22,7 +22,7 @@ __DATA__
<link rev="made" href="mailto:[PERLADMIN]" />
</head>
-<body style="background-color: white">
+<body>
<!-- INDEX BEGIN -->
--
1.7.0.2 |
The RT System itself - Status changed from 'new' to 'open' |
From @cpansproutCan Marc Green comment on this? On Sun Apr 11 19:58:06 2010, aristotle wrote:
-- Father Chrysostomos |
From ponguile@gmail.comOn Sat, Jan 7, 2012 at 4:13 AM, Father Chrysostomos via RT <
I don't know what the "output concerns" are. Could the submitter describe |
From @rjbs* Marc Green <ponguile@gmail.com> [2012-01-07T10:52:49]
They are at https://rt-archive.perl.org/perl5/Public/Bug/Display.html?id=74158 -- |
From @rspierWouldn't it be cleaner to just change bodystyle to: background-color: Or even better, if we're assuming CSS support, move *all* the styling into -R |
From @ap* Robert Spier <rspier@pobox.com> [2012-01-08 08:20]:
That was a bigger patch than I wanted to attempt. I know one thing led If someone had the ambition to clean up the file – the whole mark-up Regards, |
From ponguile@gmail.comThank you Ricardo for pointing me to the bug report. On Sat, Jan 7, 2012 at 4:13 AM, Father Chrysostomos via RT <
I am in favor of this patch. Perhaps another patch can be submitted in the future that overhauls the CSS |
From @cpansproutOn Sun Jan 08 09:11:31 2012, ponguile@gmail.com wrote:
But, not suprisingly, it won’t apply any more. :-(
-- Father Chrysostomos |
From ponguile@gmail.comOn Sun, Jan 8, 2012 at 2:05 PM, Father Chrysostomos via RT <
Perhaps not, but those few lines of code are almost exactly the same in the |
From @tonycozOn Sun Jan 08 18:47:24 2012, ponguile@gmail.com wrote:
I've attached a re-worked version of the original patch, which I'll Tony |
From @tonycoz0001-perl-74158-pod2html-output-concerns.patchFrom 1c30e261892b112d9abb36701463d8769a2a5d06 Mon Sep 17 00:00:00 2001
From: Tony Cook <tony@develop-help.com>
Date: Thu, 11 Jul 2013 17:03:44 +1000
Subject: [PATCH] [perl #74158] pod2html output concerns
---
ext/Pod-Html/lib/Pod/Html.pm | 8 +++-----
ext/Pod-Html/t/crossref.t | 2 +-
ext/Pod-Html/t/crossref2.t | 2 +-
ext/Pod-Html/t/crossref3.t | 2 +-
ext/Pod-Html/t/feature2.t | 6 +++---
ext/Pod-Html/t/htmldir1.t | 2 +-
ext/Pod-Html/t/htmldir2.t | 2 +-
ext/Pod-Html/t/htmldir3.t | 2 +-
ext/Pod-Html/t/htmldir4.t | 2 +-
ext/Pod-Html/t/htmldir5.t | 2 +-
ext/Pod-Html/t/htmlescp.t | 2 +-
ext/Pod-Html/t/htmllink.t | 2 +-
ext/Pod-Html/t/htmlview.t | 2 +-
ext/Pod-Html/t/poderr.t | 2 +-
ext/Pod-Html/t/podnoerr.t | 2 +-
15 files changed, 19 insertions(+), 21 deletions(-)
diff --git a/ext/Pod-Html/lib/Pod/Html.pm b/ext/Pod-Html/lib/Pod/Html.pm
index 3feb812..4562b4b 100644
--- a/ext/Pod-Html/lib/Pod/Html.pm
+++ b/ext/Pod-Html/lib/Pod/Html.pm
@@ -3,7 +3,7 @@ use strict;
require Exporter;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
-$VERSION = 1.19;
+$VERSION = 1.20;
@ISA = qw(Exporter);
@EXPORT = qw(pod2html htmlify);
@EXPORT_OK = qw(anchorify);
@@ -369,14 +369,12 @@ sub pod2html {
my $bodyid = $Backlink ? ' id="_podtop_"' : '';
my $csslink = '';
- my $bodystyle = ' style="background-color: white"';
- my $tdstyle = ' style="background-color: #cccccc"';
+ my $tdstyle = ' style="background-color: #cccccc; color: #000"';
if ($Css) {
$csslink = qq(\n<link rel="stylesheet" href="$Css" type="text/css" />);
$csslink =~ s,\\,/,g;
$csslink =~ s,(/.):,$1|,;
- $bodystyle = '';
$tdstyle= '';
}
@@ -400,7 +398,7 @@ END_OF_BLOCK
<link rev="made" href="mailto:$Config{perladmin}" />
</head>
-<body$bodyid$bodystyle>
+<body$bodyid>
$block
HTMLHEAD
diff --git a/ext/Pod-Html/t/crossref.t b/ext/Pod-Html/t/crossref.t
index 92837ac..30fa6d3 100644
--- a/ext/Pod-Html/t/crossref.t
+++ b/ext/Pod-Html/t/crossref.t
@@ -40,7 +40,7 @@ __DATA__
<link rev="made" href="mailto:[PERLADMIN]" />
</head>
-<body style="background-color: white">
+<body>
diff --git a/ext/Pod-Html/t/crossref2.t b/ext/Pod-Html/t/crossref2.t
index 8e18647..536cfbb 100644
--- a/ext/Pod-Html/t/crossref2.t
+++ b/ext/Pod-Html/t/crossref2.t
@@ -36,7 +36,7 @@ __DATA__
<link rev="made" href="mailto:[PERLADMIN]" />
</head>
-<body style="background-color: white">
+<body>
diff --git a/ext/Pod-Html/t/crossref3.t b/ext/Pod-Html/t/crossref3.t
index ff190f4..ab8f055 100644
--- a/ext/Pod-Html/t/crossref3.t
+++ b/ext/Pod-Html/t/crossref3.t
@@ -36,7 +36,7 @@ __DATA__
<link rev="made" href="mailto:[PERLADMIN]" />
</head>
-<body style="background-color: white">
+<body>
diff --git a/ext/Pod-Html/t/feature2.t b/ext/Pod-Html/t/feature2.t
index 920f310..0cc0072 100644
--- a/ext/Pod-Html/t/feature2.t
+++ b/ext/Pod-Html/t/feature2.t
@@ -41,9 +41,9 @@ __DATA__
<link rev="made" href="mailto:[PERLADMIN]" />
</head>
-<body id="_podtop_" style="background-color: white">
+<body id="_podtop_">
<table border="0" width="100%" cellspacing="0" cellpadding="3">
-<tr><td class="_podblock_" style="background-color: #cccccc" valign="middle">
+<tr><td class="_podblock_" style="background-color: #cccccc; color: #000" valign="middle">
<big><strong><span class="_podblock_"> </span></strong></big>
</td></tr>
</table>
@@ -70,7 +70,7 @@ some html
<p>some text and a link <a>crossref</a></p>
<table border="0" width="100%" cellspacing="0" cellpadding="3">
-<tr><td class="_podblock_" style="background-color: #cccccc" valign="middle">
+<tr><td class="_podblock_" style="background-color: #cccccc; color: #000" valign="middle">
<big><strong><span class="_podblock_"> </span></strong></big>
</td></tr>
</table>
diff --git a/ext/Pod-Html/t/htmldir1.t b/ext/Pod-Html/t/htmldir1.t
index 8dd2854..6a0857b 100644
--- a/ext/Pod-Html/t/htmldir1.t
+++ b/ext/Pod-Html/t/htmldir1.t
@@ -57,7 +57,7 @@ __DATA__
<link rev="made" href="mailto:[PERLADMIN]" />
</head>
-<body style="background-color: white">
+<body>
diff --git a/ext/Pod-Html/t/htmldir2.t b/ext/Pod-Html/t/htmldir2.t
index d1add48..d9aab5e 100644
--- a/ext/Pod-Html/t/htmldir2.t
+++ b/ext/Pod-Html/t/htmldir2.t
@@ -44,7 +44,7 @@ __DATA__
<link rev="made" href="mailto:[PERLADMIN]" />
</head>
-<body style="background-color: white">
+<body>
diff --git a/ext/Pod-Html/t/htmldir3.t b/ext/Pod-Html/t/htmldir3.t
index 184b5c6..8006bf0 100644
--- a/ext/Pod-Html/t/htmldir3.t
+++ b/ext/Pod-Html/t/htmldir3.t
@@ -53,7 +53,7 @@ __DATA__
<link rev="made" href="mailto:[PERLADMIN]" />
</head>
-<body style="background-color: white">
+<body>
diff --git a/ext/Pod-Html/t/htmldir4.t b/ext/Pod-Html/t/htmldir4.t
index 1ebcecd..31e7bde 100644
--- a/ext/Pod-Html/t/htmldir4.t
+++ b/ext/Pod-Html/t/htmldir4.t
@@ -39,7 +39,7 @@ __DATA__
<link rev="made" href="mailto:[PERLADMIN]" />
</head>
-<body style="background-color: white">
+<body>
diff --git a/ext/Pod-Html/t/htmldir5.t b/ext/Pod-Html/t/htmldir5.t
index d9b6a6b..820590f 100644
--- a/ext/Pod-Html/t/htmldir5.t
+++ b/ext/Pod-Html/t/htmldir5.t
@@ -42,7 +42,7 @@ __DATA__
<link rev="made" href="mailto:[PERLADMIN]" />
</head>
-<body style="background-color: white">
+<body>
diff --git a/ext/Pod-Html/t/htmlescp.t b/ext/Pod-Html/t/htmlescp.t
index 30c75b4..bb85e83 100644
--- a/ext/Pod-Html/t/htmlescp.t
+++ b/ext/Pod-Html/t/htmlescp.t
@@ -19,7 +19,7 @@ __DATA__
<link rev="made" href="mailto:[PERLADMIN]" />
</head>
-<body style="background-color: white">
+<body>
diff --git a/ext/Pod-Html/t/htmllink.t b/ext/Pod-Html/t/htmllink.t
index 9c26dbf..b13bf0c 100644
--- a/ext/Pod-Html/t/htmllink.t
+++ b/ext/Pod-Html/t/htmllink.t
@@ -19,7 +19,7 @@ __DATA__
<link rev="made" href="mailto:[PERLADMIN]" />
</head>
-<body style="background-color: white">
+<body>
diff --git a/ext/Pod-Html/t/htmlview.t b/ext/Pod-Html/t/htmlview.t
index 0fb36cf..792df93 100644
--- a/ext/Pod-Html/t/htmlview.t
+++ b/ext/Pod-Html/t/htmlview.t
@@ -19,7 +19,7 @@ __DATA__
<link rev="made" href="mailto:[PERLADMIN]" />
</head>
-<body style="background-color: white">
+<body>
diff --git a/ext/Pod-Html/t/poderr.t b/ext/Pod-Html/t/poderr.t
index 456810c..f83057e 100644
--- a/ext/Pod-Html/t/poderr.t
+++ b/ext/Pod-Html/t/poderr.t
@@ -19,7 +19,7 @@ __DATA__
<link rev="made" href="mailto:[PERLADMIN]" />
</head>
-<body style="background-color: white">
+<body>
diff --git a/ext/Pod-Html/t/podnoerr.t b/ext/Pod-Html/t/podnoerr.t
index cb74812..b49a3ac 100644
--- a/ext/Pod-Html/t/podnoerr.t
+++ b/ext/Pod-Html/t/podnoerr.t
@@ -21,7 +21,7 @@ __DATA__
<link rev="made" href="mailto:[PERLADMIN]" />
</head>
-<body style="background-color: white">
+<body>
--
1.7.10.4
|
From @tonycozOn Thu Jul 11 00:05:04 2013, tonyc wrote:
Applied as e6afd14. Tony |
@tonycoz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#74158 (status was 'resolved')
Searchable as RT74158$
The text was updated successfully, but these errors were encountered: