Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d05177f

Browse files
committed
tohtml(): Use a table instead of a definition list for module synopses.
1 parent d19b9d6 commit d05177f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Doc/perl/SynopsisTable.pm

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,15 @@ sub show{
3838

3939
sub tohtml{
4040
my $self = shift;
41-
my $data = "<dl>\n";
41+
my $data = "<table>\n";
4242
my $name;
4343
foreach $name (split /,/, $self->{names}) {
4444
my($key,$type,$synopsis) = $self->get($name);
45-
$data .= ("<dt><b><tt><a href=\"module-$key.html\">$name</a></tt></b>"
46-
. "\n<dd>$synopsis\n");
45+
my $link = "<a href=\"module-$key.html\">";
46+
$data .= (" <tr><td><b><tt>$link$name</a></tt></b></td>\n"
47+
. " <td>$synopsis</td></tr>\n");
4748
}
48-
$data .= "</dl>\n";
49+
$data .= "</table>\n";
4950
$data;
5051
}
5152

0 commit comments

Comments
 (0)