latin: common styling for tap code rows
[sheet.git] / latin.plp
index 8c2bef5a32019d82b639f0c48ff57c1b80407666..6d23534414ceef6883a09bc46508b0eb9c17ae1c 100644 (file)
--- a/latin.plp
+++ b/latin.plp
@@ -22,6 +22,10 @@ Html({
                src: url("/suetterlin.ttf");
        }
        #sütterlin td { font-family: Suetterlin }
+       #tap-code td,
+       #tap-simplified td {
+               line-height: 1ex;
+       }
 
        svg path:not([fill]) {
                stroke: currentColor;
@@ -58,7 +62,7 @@ else {
                my ($title, $cells) = @{$row};
                printf '<tr id="%s">', (lc $title) =~ s/<[^>]+>//gr =~ s/\s+/-/gr;
                say '<th>', $title;
-               print /^<td/ ? $_ : "\t<td>$_\n" for @{$cells};
+               say "\t", '<td>' x !/^<td/, $_ for @{$cells};
        }
        say "</table>\n";
 }