From 21c6d61aa1b6caee6c37994f81469041265df61f Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Thu, 8 Nov 2007 11:30:15 -0800 Subject: Fix table plugin to not generate an unbalanced tbody tag with header=no The table plugin omitted with header=no, but always generated , resulting in an unbalanced tag. Fix that by omitting too. --- IkiWiki/Plugin/table.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki/Plugin') diff --git a/IkiWiki/Plugin/table.pm b/IkiWiki/Plugin/table.pm index e8df17487..02a2ba05d 100644 --- a/IkiWiki/Plugin/table.pm +++ b/IkiWiki/Plugin/table.pm @@ -78,7 +78,7 @@ sub preprocess (@) { #{{{ push @lines, "\t", genrow($params{page}, $params{destpage}, "th", @$header), "\t" if defined $header; - push @lines, "\t"; + push @lines, "\t" if defined $header; push @lines, genrow($params{page}, $params{destpage}, "td", @$_) foreach @data; push @lines, "\t" if defined $header; -- cgit v1.2.3