]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/table.pm
correct variable scoping error in nils's patch
[ikiwiki.git] / IkiWiki / Plugin / table.pm
index e8df174871b7bde8383fd3f93131958b9e2a9e25..02a2ba05dacc5aa67ed842489b909a8982a985c4 100644 (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;