jpl has asked for the wisdom of the Perl Monks concerning the following question:
According to perldoc perlpod:
I have a file (quirk.pod) containingOr you can link to a web page: o "L<scheme:...>" "L<text|scheme:...>" Links to an absolute URL. For example, "L<http://www.perl.org/>" or "L<The Perl Home Page|http://www.perl.org/>".
podchecker has no problem with it. The output of perldoc includes=pod =head1 Ugly Link Rendering This is an ftp link L<ftp://ftp2.census.gov/geo/tiger/TIGER2010>. L<This is not|http://ftp2.census.gov/geo/tiger/TIGER2010/>.
The vestigial <'s and >'s are ugly and confusing. They make it appear that you omitted a pod formatting code. If I runUgly Link Rendering This is an ftp link <ftp://ftp2.census.gov/geo/tiger/TIGER2010> +. This is not <http://ftp2.census.gov/geo/tiger/TIGER2010/>.
I see/honk/perl5.14.1/bin/pod2html quirk.pod > quirk.html
and quirk.html contains (among other stuff)/honk/perl5.14.1/bin/pod2html: quirk.pod: cannot resolve L<This is not +|http://ftp2.census.gov/geo/tiger/TIGER2010/> in paragraph 3.
This is beyond ugly. The second hyperlink has disappeared altogether.<h1><a name="ugly_link_rendering">Ugly Link Rendering</a></h1> <p>This is an ftp link <a href="ftp://ftp2.census.gov/geo/tiger/TIGER2010">ftp://ftp2.census. +gov/geo/tiger/TIGER2010</a>. <em>This is not</em>.</p>
It's hard for me to believe that this is a bug that has managed to go unnoticed (I see it in 5.8.1, 5.12.1 and 5.14.1). So I must have done something wrong in creating the pod. But not wrong enough for podchecker to notice. And it sure looks to me like I'm doing what perlpod told me to do. Any insights?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: hyperlinks in pod
by davies (Prior) on Sep 27, 2011 at 18:06 UTC | |
by jpl (Monk) on Sep 27, 2011 at 21:23 UTC | |
Re: hyperlinks in pod
by Anonymous Monk on Sep 27, 2011 at 19:30 UTC | |
by Anonymous Monk on Sep 27, 2011 at 20:06 UTC | |
by jpl (Monk) on Sep 27, 2011 at 21:02 UTC | |
by Anonymous Monk on Sep 28, 2011 at 09:00 UTC |
Back to
Seekers of Perl Wisdom