sc: prevent excess leading tbody tag
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 19 May 2010 21:18:24 +0000 (21:18 +0000)
committerMischa POSLAWSKY <perl@shiar.org>
Fri, 21 May 2010 19:50:20 +0000 (19:50 +0000)
sc.plp

diff --git a/sc.plp b/sc.plp
index cd07f24738ee01855005f40e3caeac490da6b36c..31d3555e65da02d275e2738f758eb4066e76267e 100644 (file)
--- a/sc.plp
+++ b/sc.plp
@@ -154,7 +154,6 @@ sub coltoggle {
        <th class="val unit-speed">speed</th>
        <th class="unit-magic">specials</th>
 </tr></thead>
        <th class="val unit-speed">speed</th>
        <th class="unit-magic">specials</th>
 </tr></thead>
-<tbody>
 <:
 sub showrange {
        my ($row, @elements) = @_;
 <:
 sub showrange {
        my ($row, @elements) = @_;
@@ -254,7 +253,7 @@ sub showrange {
        my ($race, $cat) = ('', '');
        for (@rows) {
                $race = $_->{race},
        my ($race, $cat) = ('', '');
        for (@rows) {
                $race = $_->{race},
-               printf '</tbody><tbody id="%s"><tr class="race"><th colspan="18"><h2>%s</h2>'."\n", $race, ucfirst $race
+               printf '<tbody id="%s"><tr class="race"><th colspan="18"><h2>%s</h2>'."\n", $race, ucfirst $race
                        if $grouped and $race ne $_->{race};
                $_->{cat} = $_->{race} if not $grouped;
                my $sizechar = [qw/? s m l/]->[$_->{size}];
                        if $grouped and $race ne $_->{race};
                $_->{cat} = $_->{race} if not $grouped;
                my $sizechar = [qw/? s m l/]->[$_->{size}];
@@ -307,7 +306,6 @@ sub showrange {
                }
        }
 :>
                }
        }
 :>
-</tbody>
 </table>
 
 <div class="legend">
 </table>
 
 <div class="legend">