On Mar 21, 2009, at 1:35 PM, Greg Sabino Mullane via RT wrote:
Show quoted text> Queue: DBD-Pg
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=44242 >
>
> Interesting. There is definitely a disconnect here between two tools,
> podchecker and pod2html. I've always used the latter as a guide to
> well-formedness, as that's what gets used by cpan.org to make theur
> pages (I think). Here's what happens with the current Pg.pm on
> podchecker:
>
>> podchecker Pg.pm
> *** ERROR: unresolved internal link
> 'pg_expand_array__boolean__read_only_' at line 3979 in file Pg.pm
> *** ERROR: unresolved internal link 'pg_bool_tf__boolean_' at line
> 4104
> in file Pg.pm
> Pg.pm has 2 pod syntax errors.
>
> But if we "fix" those by removing the underscore hack, pod2html is no
> longer able to find the correct links:
>
>> pod2html Pg.pm > /dev/null
> /usr/local/bin/pod2html: Pg.pm: cannot resolve L<pg_expand_array> in
> paragraph 930.
> /usr/local/bin/pod2html: Pg.pm: cannot resolve L<pg_bool_tf> in
> paragraph 959.
>
> Not sure at the moment what the correct solution is, but any solution
> that makes podchecker happy must also work for pod2html. Suggestions
> welcome. :)
>
I think you want to use Pod::Simple to generate the HTML; that's what
search.cpan.org uses. When I do it, the HTML look like this:
<h3><a class='u' href='#___top' title='click to go to top of document'
name="pg_expand_array_(boolean)"
Show quoted text ><b>pg_expand_array</b> (boolean)</a></h3>
So I think what you want is:
L<pg_expand_array|/pg_expand_array_(boolean)>
Best,
David