]> granicus.if.org Git - python/commitdiff
Make sure that ampersand escaping is still performed on the contents of
authorFred Drake <fdrake@acm.org>
Fri, 17 Aug 2001 17:20:44 +0000 (17:20 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 17 Aug 2001 17:20:44 +0000 (17:20 +0000)
local module tables (the lists of modules documented within a chapter,
inserted at the beginning of the chapter).  If this is not done here,
the text is not part of the resulting documents when latex2html does the
processing normally.

This fixes a little bit more of SF bug #451556.

Doc/perl/SynopsisTable.pm

index 9e528ab747306010a81041f3b840eefc90a90814..a77a016a7b742b4c0fd268df1ae2a3c3804de6a5 100644 (file)
@@ -58,6 +58,8 @@ sub tohtml{
     foreach $name (split /,/, $self->{names}) {
        my($key,$type,$synopsis) = $self->get($name);
        my $link = "<a href='module-$key.html'>";
+       $synopsis =~ s/<tex2html_percent_mark>/%/g;
+       $synopsis =~ s/<tex2html_ampersand_mark>/\&amp;/g;
        $data .= ('  <tr'
                   . ($oddrow ? " class='oddrow'>\n      " : '>')
                  . "<td><b><tt class='module'>$link$name</a></tt></b></td>\n"