develooper Front page | perl.perl5.porters | Postings from November 2011

Re: [perl #78190] Fix for pod2html links to ".html#foobar"

Thread Next
From:
Daniel Pfeiffer
Date:
November 28, 2011 13:37
Subject:
Re: [perl #78190] Fix for pod2html links to ".html#foobar"
Message ID:
4ED3FEF2.2020508@t-online.de
la 11/27/2011 07:07 AM Father Chrysostomos via RT skribis:
> On Sun Oct 03 10:40:59 2010, occitan@esperanto.org wrote:
>>    long ago I experimented with various options till I finally managed
>> to
>> generate makepp docs with --podpath=. --podroot=. --htmlroot=., which
>> might
>> not be the official way, but the only one that worked for me.  Later I
>> noticed
>> that newer Perls (since about 5.8.7) sometimes link to .html#foobar.
>> I have
>> now traced this down to the fact that files start with ./, probably if
>> found
>> in my path.  But pod2html takes everything before the 1st dot and adds
>> .html.
>> My patch fixes that by changing to the everything before last dot
>>
> Your patch does not apply against bleadperl, but there is a good chance
> it has been fixed.  Could you provide a test case, or try out blead
> yourself?

Gosh, I don't remember.  I have somehow worked around this in the makepp doc, 
so I don't know what the test case was.

And you scare me by saying that it has been rewritten on top of Pod::Simple!  
I still have the trauma of 5.8.7 wantonly switching to incompatible (and too 
primitive, e.g. case insensitive) =item links.  That made me fix L<links> all 
over the place.  I hope you didn't repeat that nightmare!

Otoh I hope you finally made X<anchors> work, even though for makepp, which is 
backwards compatible to 5.6, that is useless...

coralament / best Grötens / liebe Grüße / best regards / elkorajn salutojn
Daniel Pfeiffer

-- 
lerne / learn / apprends / lär dig / ucz się    Esperanto:
                     http://lernu.net  /  http://ikurso.net


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About