mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Minor adjustments to HTML for the module synopsis tables.
This commit is contained in:
parent
4862ab7bf4
commit
caa79a9ee4
1 changed files with 6 additions and 2 deletions
|
@ -52,14 +52,18 @@ sub show{
|
|||
|
||||
sub tohtml{
|
||||
my $self = shift;
|
||||
my $data = "<table class='synopsistable'>\n";
|
||||
my $oddrow = 1;
|
||||
my $data = "<table class='synopsistable' valign='baseline'>\n";
|
||||
my $name;
|
||||
foreach $name (split /,/, $self->{names}) {
|
||||
my($key,$type,$synopsis) = $self->get($name);
|
||||
my $link = "<a href='module-$key.html'>";
|
||||
$data .= (' <tr>'
|
||||
$data .= (' <tr'
|
||||
. ($oddrow ? " class='oddrow'>\n " : '>')
|
||||
. "<td><b><tt class='module'>$link$name</a></tt></b></td>\n"
|
||||
. " <td>\ </td>\n"
|
||||
. " <td class='synopsis'>$synopsis</td></tr>\n");
|
||||
$oddrow = !$oddrow;
|
||||
}
|
||||
$data .= "</table>\n";
|
||||
$data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue