Fix table plugin to not generate an unbalanced tbody tag with header=no

The table plugin omitted </tbody> with header=no, but always generated
<tbody>, resulting in an unbalanced tag.  Fix that by omitting <tbody>
too.
master
Josh Triplett 2007-11-08 11:30:15 -08:00
parent cf2ea74175
commit 21c6d61aa1
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ sub preprocess (@) { #{{{
push @lines, "\t<thead>",
genrow($params{page}, $params{destpage}, "th", @$header),
"\t</thead>" if defined $header;
push @lines, "\t<tbody>";
push @lines, "\t<tbody>" if defined $header;
push @lines, genrow($params{page}, $params{destpage}, "td", @$_)
foreach @data;
push @lines, "\t</tbody>" if defined $header;