Subject: | Invalid "POD Error" message |
Date: | Sun, 30 Sep 2012 18:06:26 +0200 |
To: | bug-pod-simple [...] rt.cpan.org |
From: | "K. Wittrock" <KWittrock [...] web.de> |
At the end of the generated HTML file, Pod::Simple::HTML (version 3.23) complains:
Hey! The above document had some coding errors, which are explained below:
Around line 10:
Can't have a 0 in =over 0
In "perldoc POD" I can't find any hint that 0 is an invalid indentation. Also, podchecker doesn't complain. I think that "=item *" doesn't need an indentation in some situations, e. g. in section DEPENDENCIES, where most entries in the list fit in one line.
My test program looks like this:
---------------------------------------
use strict;
use warnings;
use Pod::Simple::HTML;
my $podfile = './tstover0.pod';
-f $podfile or die "$podfile doesn't exist\n";
my $p = Pod::Simple::HTML->new;
$p->output_string(\my $html);
$p->parse_file($podfile);
open my $out, '>', 'out.html' or die "Cannot open 'out.html': $!\n";
print $out $html;
---------------------------------------
And this is my test POD:
---------------------------------------
=head1 NAME
B<tstover0>
=head1 DEPENDENCIES
In addition to modules that are distributed with perl, this program
needs the following modules (available from CPAN):
=over 0
=item * L<PerlE<sol>Tk|Tk>
=item * L<List::MoreUtils|List::MoreUtils>
=back
---------------------------------------
Please remove this error message from Pod::Simple::HTML.
Kind regards
Klaus Wittrock