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

Skip to content

Commit caa79a9

Browse files
committed
Minor adjustments to HTML for the module synopsis tables.
1 parent 4862ab7 commit caa79a9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Doc/perl/SynopsisTable.pm

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,18 @@ sub show{
5252

5353
sub tohtml{
5454
my $self = shift;
55-
my $data = "<table class='synopsistable'>\n";
55+
my $oddrow = 1;
56+
my $data = "<table class='synopsistable' valign='baseline'>\n";
5657
my $name;
5758
foreach $name (split /,/, $self->{names}) {
5859
my($key,$type,$synopsis) = $self->get($name);
5960
my $link = "<a href='module-$key.html'>";
60-
$data .= (' <tr>'
61+
$data .= (' <tr'
62+
. ($oddrow ? " class='oddrow'>\n " : '>')
6163
. "<td><b><tt class='module'>$link$name</a></tt></b></td>\n"
64+
. " <td>\&nbsp;</td>\n"
6265
. " <td class='synopsis'>$synopsis</td></tr>\n");
66+
$oddrow = !$oddrow;
6367
}
6468
$data .= "</table>\n";
6569
$data;

0 commit comments

Comments
 (0)