},
'podlators' => {
- 'DISTRIBUTION' => 'RRA/podlators-2.5.2.tar.gz',
+ 'DISTRIBUTION' => 'RRA/podlators-2.5.3.tar.gz',
'FILES' => q[cpan/podlators pod/perlpodstyle.pod],
# The perl distribution has pod2man.PL and pod2text.PL, which are
-$VERSION = '2.5.2';
+$VERSION = '2.5.3';
in the resulting documentation summarizing the errors. C<none> ignores
POD errors entirely, as much as possible.
-The default is C<output>.
+The default is C<pod>.
=item date
in the resulting documentation summarizing the errors. C<none> ignores
POD errors entirely, as much as possible.
-The default is C<output>.
+The default is C<pod>.
=item indent
my $output;
$parser->output_string (\$output);
-# Try a POD document where the only command is invalid.
+# Try a POD document where the only command is invalid. With recent
+# Pod::Simple, there will be a POD ERRORS section. With older versions of
+# Pod::Simple, we have to skip the test since it doesn't trigger this problem.
+# Be sure that we don't get any warnings as well as any errors.
+local $SIG{__WARN__} = sub { die $_[0] };
ok (eval { $parser->parse_string_document("=\xa0") },
'Parsed invalid document');
is ($@, '', '...with no errors');
-like ($output, qr{\.SH \"POD ERRORS\"},
- '...and output contains a POD ERRORS section');
+SKIP: {
+ skip 'Pod::Simple does not produce errors for invalid commands', 1
+ if $output eq q{};
+ like ($output, qr{\.SH \"POD ERRORS\"},
+ '...and output contains a POD ERRORS section');
+}
# Try with a document containing only =cut.
ok (eval { $parser->parse_string_document("=cut") },
'Parsed invalid document');
is ($@, '', '...with no errors');
-like ($output, qr{\.SH \"POD ERRORS\"},
- '...and output contains a POD ERRORS section');
+SKIP: {
+ skip 'Pod::Simple does not produce errors for invalid commands', 1
+ if $output eq q{};
+ like ($output, qr{\.SH \"POD ERRORS\"},
+ '...and output contains a POD ERRORS section');
+}
ok (eval { $parser->parse_string_document("=\xa0") },
'Parsed invalid document');
is ($@, '', '...with no errors');
-like ($output, qr{POD ERRORS}, '...and output contains a POD ERRORS section');
+SKIP: {
+ skip 'Pod::Simple does not produce errors for invalid commands', 1
+ if $output eq q{};
+ like ($output, qr{POD ERRORS},
+ '...and output contains a POD ERRORS section');
+}
# Try with a document containing only =cut.
ok (eval { $parser->parse_string_document("=cut") },
'Parsed invalid document');
is ($@, '', '...with no errors');
-like ($output, qr{POD ERRORS}, '...and output contains a POD ERRORS section');
+SKIP: {
+ skip 'Pod::Simple does not produce errors for invalid commands', 1
+ if $output eq q{};
+ like ($output, qr{POD ERRORS},
+ '...and output contains a POD ERRORS section');
+}
=item *
-The podlators modules have been upgraded from version 2.5.1 to 2.5.2.
+The podlators modules have been upgraded from version 2.5.1 to 2.5.3.
Numerous updates and bug fixes are incorporated. See the F<Changes> file in
the CPAN distribution for full details.