Subject: | podlators 2 changed treatment of whitespace-only construction with S<> |
pod2html and tkpod just to name a few treat a sequence matching
/S<\s+>/
as whitespace. Podlators up to 2.0 did likewise. But since 2.0 pod2man
and pod2text treat this as error AND lose the rest of the line.
The following test script:
=head1 The Tk::mega manpage showed me how C<< SE<lt> E<gt> foo >> is
being rendered
Both pod2text and pod2man S< > lose the rest of the line
=head1 Do they always S< > lose the rest of the line?
=cut
use File::Spec;
my $perl = File::Spec->rel2abs($^X);
use File::Basename;
my $pod2man = File::Basename::dirname($perl) . "/perldoc";
open my $fh, "-|", $perl, $pod2man, "-t", "-F", $0 or die;
while (<$fh>) {
print;
}
now prints:
----Output of .../pe53taG/perl-5.8.0@26295/bin/perl----
The Tk::mega manpage showed me how "S< > foo" is being rendered
Both pod2text and pod2man
Do they always
POD ERRORS
Hey! The above document had some coding errors, which are explained
below:
Around line 4:
Unterminated S<...> sequence
Around line 6:
Unterminated S<...> sequence
----EOF ($?='0')----
Up to bleadperl 26291 it printed
----Output of .../pJmPzPp/perl-5.8.0@26291/bin/perl----
The Tk::mega manpage showed me how "S< > foo" is being rendered
Both pod2text and pod2man lose the rest of the line
Do they always lose the rest of the line?
----EOF ($?='0')----