termcol: distinguish separate tbody for shiar32 greyscale rows
[sheet.git] / termcol.plp
index 2c16fe9999d38001eb8cc167e09337443503c7ee..bd9fd538f8117860593facfafecb8d588bf6625c 100644 (file)
@@ -134,6 +134,10 @@ sub coltable {
                say '<table class="color mapped">';
                say sprintf '<caption>%s</caption>', $caption;
                for my $row (@$table) {
                say '<table class="color mapped">';
                say sprintf '<caption>%s</caption>', $caption;
                for my $row (@$table) {
+                       if (!$row) {
+                               say '<tbody>';
+                               next;
+                       }
                        print '<tr>';
                        print colcell(ref $_ ? @$_ : $_ ? reverse split /:/ : undef) for @$row;
                }
                        print '<tr>';
                        print colcell(ref $_ ? @$_ : $_ ? reverse split /:/ : undef) for @$row;
                }