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
[PATCH] v5.8.8 pod2html -- Add <div>..</div> around the outputted INDEX section #8821
Comments
From @jaaltoCreated by jaalto@cante.cante.netApplying a style sheet (CSS) to a pod2html generated index entry is USE CASE [before] <p><a name="__index__"></a></p> <ul> <li><a href="#name">NAME</a></li> <li><a href="#progress_meter">PROGRESS METER</a></li> <li><a href="#options">OPTIONS</a></li> <hr /> USE CASE [after the patch] <!-- INDEX BEGIN --> <ul> <li><a href="#name">NAME</a></li> <li><a href="#progress_meter">PROGRESS METER</a></li> <li><a href="#options">OPTIONS</a></li> <hr name="index" /> [ /usr/share/perl/5.8.8/Pod/Html.pm ] === modified file 'Html.pm' Inline Patch--- Html.pm 2007-03-04 19:08:25 +0000
+++ Html.pm 2007-03-04 21:31:00 +0000
@@ -512,13 +512,25 @@
# still generate an index, but surround it with an html comment.
# that way some other program can extract it if desired.
$index =~ s/--+/-/g;
- print HTML "<p><a name=\"__index__\"></a></p>\n";
- print HTML "<!-- INDEX BEGIN -->\n";
- print HTML "<!--\n" unless $Doindex;
- print HTML $index;
- print HTML "-->\n" unless $Doindex;
- print HTML "<!-- INDEX END -->\n\n";
- print HTML "<hr />\n" if $Doindex and $index;
+
+ my $hr = ($Doindex and $index) ? qq(<hr name="index" />) : "";
+
+ unless ($Doindex)
+ {
+ $index = qq(<!--\n$index\n-->\n);
+ }
+
+ print HTML << "END_OF_INDEX";
+
+<!-- INDEX BEGIN -->
+<div name="index">
+<p><a name=\"__index__\"></a></p>
+$index
+$hr
+</div>
+<!-- INDEX END -->
+
+END_OF_INDEX
# now convert this file
my $after_item; # set to true after an =item Perl Info
|
From nospam-abuse@bloodgate.com-----BEGIN PGP SIGNED MESSAGE----- Moin Jari, On Sunday 04 March 2007 21:33:20 Jari Aalto wrote:
Jari, I do think that your bugreports are sensible, and thorough and backed We now have that nide, shiny thing called Pod::Simple, which is a nice, And it has a part called Pod::Simple::HTML. This module currently has some So instead of hacking further on pod2html, and thus prolong the life of a Many of your problems could be really easily solved with a clean POD parser Do you think that would be something you could do? All the best, Tels - -- "helft den armen vögeln" -- gegen kleinschreibung iQEVAwUBRexlL3cLPEOTuEwVAQIIwAf9Esy2/qiAVsSrC2vppwaueQyGZdh9+KK2 |
The RT System itself - Status changed from 'new' to 'open' |
From @jaaltonospam-abuse@bloodgate.com (Tels) writes:
I agree that pod2html seems like after thought but I have neem using It's only now when I ran into project where I really needed CSS to http://perldoc.perl.org/perlpod.html So these must be be some CSS thingies going at Perl Head Quartes. I
I agree that replacement and proper support for POD is welcomed. Thank I do believe that it is worth improving the pod2html. Especially if I don't expect pod2html to be end of it's life - not yet. It can be phased out when the features are complete; then the change So, if you ask me -- please put in the patches and great many are
I'd be happy to lend sime time if possible. As you know we usually Whether I can put more effort there is question, depends how occupied Jari |
@rgs - Status changed from 'open' to 'resolved' |
From @rgarciaOn 04/03/07, via RT Jari Aalto <perlbug-followup@perl.org> wrote:
Thanks, applied as #30583. |
Migrated from rt.perl.org#41698 (status was 'resolved')
Searchable as RT41698$
The text was updated successfully, but these errors were encountered: