This bug report relates to the following:
https://github.com/CPAN-API/metacpan-web/issues/597
When Pod::Simple::XHTML is run on the most recent version of perldelta,
wget http://api.metacpan.org/source/ZEFRAM/perl-5.17.0/pod/perldelta.pod
it creates a doubled link in the index, like this:
<a href="#perldata"><a href="http://search.cpan.org/perldoc?
perldata">perldata</a></a></li>
This is caused by the L<perldata> heading in perldelta.pod.
Subject: | test.pl |
#!/home/ben/software/install/bin/perl
use warnings;
use strict;
use File::Slurp;
use Pod::Simple::XHTML;
use Test::More tests => 1;
my $c = read_file ('perldelta.pod');
my $d = Pod::Simple::XHTML->new ();
$d->index (1);
my $e;
$d->output_string (\$e);
$d->parse_string_document ($c);
unlike ($e, qr!\Q<a href="#perldata"><a href="http://search.cpan.org/perldoc?perldata">perldata</a></a></li>!);