Commit d05177fa authored by Fred Drake's avatar Fred Drake

tohtml(): Use a table instead of a definition list for module synopses.

parent d19b9d6c
...@@ -38,14 +38,15 @@ sub show{ ...@@ -38,14 +38,15 @@ sub show{
sub tohtml{ sub tohtml{
my $self = shift; my $self = shift;
my $data = "<dl>\n"; my $data = "<table>\n";
my $name; my $name;
foreach $name (split /,/, $self->{names}) { foreach $name (split /,/, $self->{names}) {
my($key,$type,$synopsis) = $self->get($name); my($key,$type,$synopsis) = $self->get($name);
$data .= ("<dt><b><tt><a href=\"module-$key.html\">$name</a></tt></b>" my $link = "<a href=\"module-$key.html\">";
. "\n<dd>$synopsis\n"); $data .= (" <tr><td><b><tt>$link$name</a></tt></b></td>\n"
. " <td>$synopsis</td></tr>\n");
} }
$data .= "</dl>\n"; $data .= "</table>\n";
$data; $data;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment