Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Pod-Simple CPAN distribution.

Report information
The Basics
Id: 84093
Status: resolved
Priority: 0/
Queue: Pod-Simple

People
Owner: Nobody in particular
Requestors: ARGRATH [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.26
Fixed in: 3.28



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;
I helped myself by adding 'Z<>': =encoding utf8 Z<> =head1 bla it is still a hack though... Am Mi 20. Mär 2013, 12:33:48, ARGRATH schrieb: Show quoted text
> When pod with =encoding is converted to XHTML by Pod::Simple::XHTML, > resulting first <h1> contains encoding string. > Samples attached.
On 2013-03-20 12:33:48, ARGRATH wrote: Show quoted text
> When pod with =encoding is converted to XHTML by Pod::Simple::XHTML, > resulting first <h1> contains encoding string. > Samples attached.
This commit created this bug: https://github.com/theory/pod-simple/commit/fc97ecd5bbb7c02a796e6852078292d020c2d0af. Working on a fix…