Subject: | Pod::Simple::HTML Should Strip Trailing Whitespace From Locations |
Date: | Tue, 13 Apr 2010 13:40:29 -0700 |
To: | bug-pod-simple [...] rt.cpan.org |
From: | "David E. Wheeler" <dwheeler [...] cpan.org> |
Noticed while reading http://search.cpan.org/dist/perl-5.12.0/pod/perl5120delta.pod. Its link to perlop for the Yada Yada Yada operator is #Yada_Yada_Yada, which is corret, but perlop has crated that location as #Yada_Yada_Operator___. This is because the header looks like this:
=head2 Yada Yada Operator
X<...> X<... operator> X<yada yada operator>
The X<> stuff is stripped out, as it's not used for formatting, but the whitespace gets left over. This whitespace should be stripped out before the location name is created (perhaps in section_name_tidy()?).
Make sure that such links work properly in XHTML output, too.