Subject: | ::XHTML: Encoding string specified on =encoding leaks to following =head1 |
When pod with =encoding is converted to XHTML by Pod::Simple::XHTML,
resulting first <h1> contains encoding string.
Samples attached.
Subject: | in.pod |
=encoding utf-8
=head1 NAME
Subject: | out.html |
utf-8NAME
Subject: | test.pl |
use Pod::Simple::XHTML;
my $psx = Pod::Simple::XHTML->new;
$psx->output_string(\my $html);
$psx->parse_file('in.pod');
open my $out, '>', 'out.html' or die "Cannot open 'out.html': $!\n";
print $out $html;