New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PATCH] pod2html: embedded E<> tags in C<> are doubly escaped. #1173
Comments
From adam@doogie.orgCreated by doogie@debian.orgThe following pod fragment is incorrectly processed by pod2html: C<FOO . serialize &E<gt> save_FOO.sh> This produces in the generated .html file: <CODE>FOO . serialize &> save_FOO.sh</CODE> Note how the & from the E<> is escaped. This keeps it from displaying The following patch fixes it, at least for me. === Inline Patch--- Html.pm.orig Sat Jan 22 11:29:20 2000
+++ Html.pm.new Sat Feb 12 21:40:49 2000
@@ -1202,7 +1202,7 @@
# process the text within the pod-escape so that any escapes
# which must occur do.
- process_text(\$params, 0) unless $tag eq 'L';
+ process_text(\$params, 0) unless $tag eq 'L' || $tag eq 'C';
$s1 = $params;
if (!$tag || $tag eq " ") { # <> : no tag
@@ -1242,6 +1242,7 @@
sub html_escape {
my $rest = $_[0];
$rest =~ s/&/&/g;
+ process_text(\$rest, 0);
$rest =~ s/</</g;
$rest =~ s/>/>/g;
$rest =~ s/"/"/g;
Using this patch, I get this now in the .html file: <CODE>FOO . serialize &> save_FOO.sh</CODE> Perl Info
|
From The RT System itselfThis patch no longer applies, Pod::HTML IS VERY DIFFERENT. |
Migrated from rt.perl.org#2142 (status was 'resolved')
Searchable as RT2142$
The text was updated successfully, but these errors were encountered: