mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Make sure that ampersand escaping is still performed on the contents of
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.
This commit is contained in:
parent
1a49350e8d
commit
2dc07946bf
1 changed files with 2 additions and 0 deletions
|
|
@ -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>/\&/g;
|
||||
$data .= (' <tr'
|
||||
. ($oddrow ? " class='oddrow'>\n " : '>')
|
||||
. "<td><b><tt class='module'>$link$name</a></tt></b></td>\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue