Skip Menu |

This queue is for tickets about the Perl6-Perldoc CPAN distribution.

Report information
The Basics
Id: 29474
Status: new
Priority: 0/
Queue: Perl6-Perldoc

People
Owner: Nobody in particular
Requestors: a.r.ferreira [...] gmail.com
Cc:
AdminCc:

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



Subject: Re: [PATCH] against bug in rendering S<> in XHTML
Date: Tue, 18 Sep 2007 16:57:20 -0300
To: bug-Perl6-Perldoc [...] rt.cpan.org, "Damian Conway" <damian [...] conway.org>
From: "Adriano Ferreira" <a.r.ferreira [...] gmail.com>
Hi, Damian. In Perl6::Perldoc-v0.0.5, a sequence like S<Perl 6> is currently rendered as P&nbsp;e&nbsp;r&nbsp;l&nbsp; &nbsp;6&nbsp; because of a simple mistake in Perl6::Perldoc::FormattingCode::S::to_xhtml, namely diff -ru Perl6-Perldoc-v0.0.5/lib/Perl6/Perldoc/To/Xhtml.pm Perl6-Perldoc/lib/Perl6/Perldoc/To/Xhtml.pm --- Perl6-Perldoc-v0.0.5/lib/Perl6/Perldoc/To/Xhtml.pm 2007-04-25 03:31:02.000000000 -0300 +++ Perl6-Perldoc/lib/Perl6/Perldoc/To/Xhtml.pm 2007-09-18 16:39:02.000000000 -0300 @@ -668,7 +668,7 @@ sub to_xhtml { my $self = shift; my $text = $self->SUPER::to_xhtml(@_); - $text =~ s{ }{&nbsp;}gxms; + $text =~ s{[ ]}{&nbsp;}gxms; $text =~ s{\n}{<br/>}gxms; return $text; }

Message body is not shown because sender requested not to inline it.