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 e r l 6
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{ }{ }gxms;
+ $text =~ s{[ ]}{ }gxms;
$text =~ s{\n}{<br/>}gxms;
return $text;
}
Message body is not shown because sender requested not to inline it.