diff options
author | Josh Triplett <josh@freedesktop.org> | 2007-11-08 11:30:15 -0800 |
---|---|---|
committer | Josh Triplett <josh@freedesktop.org> | 2007-11-08 11:30:15 -0800 |
commit | 21c6d61aa1b6caee6c37994f81469041265df61f (patch) | |
tree | 11262d3dd58636ddc08fb6df903cb2dc4ab8dc95 /IkiWiki | |
parent | cf2ea74175de270f8b78195b96025195e1a0c2cb (diff) | |
download | ikiwiki-21c6d61aa1b6caee6c37994f81469041265df61f.tar ikiwiki-21c6d61aa1b6caee6c37994f81469041265df61f.tar.gz |
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.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/table.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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<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; |