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: 45829
Status: resolved
Priority: 0/
Queue: Pod-Simple

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

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: No Encoding of C<> in XHTML
Date: Thu, 7 May 2009 13:00:24 -0700
To: bug-pod-simple [...] rt.cpan.org
From: "David E. Wheeler" <dwheeler [...] cpan.org>
Howdy, Here's a patch that fixes Pod::Simple::XHTML so that it properly encodes entities for <code></code> spans. Index: XHTML.pm =================================================================== --- XHTML.pm (revision 356) +++ XHTML.pm (working copy) @@ -328,8 +328,8 @@ sub start_B { $_[0]{'scratch'} .= '<b>' } sub end_B { $_[0]{'scratch'} .= '</b>' } -sub start_C { $_[0]{'scratch'} .= '<code>' } -sub end_C { $_[0]{'scratch'} .= '</code>' } +sub start_C { $_[0]{'scratch'} .= '<code>'; $_[0]{'in_verbatim'} = 1; } +sub end_C { $_[0]{'scratch'} .= '</code>'; $_[0]{'in_verbatim'} = 0; } sub start_E { $_[0]{'scratch'} .= '&' } sub end_E { $_[0]{'scratch'} .= ';' } Best, David
On Thu May 07 16:00:56 2009, DWHEELER wrote: Show quoted text
> Howdy, > > Here's a patch that fixes Pod::Simple::XHTML so that it properly > encodes entities for <code></code> spans.
Thanks, applied in r357, will be included in the next release. Allison