git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
termcol: distinguish separate tbody for shiar32 greyscale rows
[sheet.git]
/
termcol.plp
diff --git
a/termcol.plp
b/termcol.plp
index 2c16fe9999d38001eb8cc167e09337443503c7ee..bd9fd538f8117860593facfafecb8d588bf6625c 100644
(file)
--- a/
termcol.plp
+++ b/
termcol.plp
@@
-134,6
+134,10
@@
sub coltable {
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;
}