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
parent
cf2ea74175
commit
21c6d61aa1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue