latin: prevent line wrapping of code39 bars
[sheet.git] / latin.plp
index 9128a2834284af78a2eab632d015eedadda131c1..6de3fa5ce9e5eccf12a1686e2af2a4807cf51ec6 100644 (file)
--- a/latin.plp
+++ b/latin.plp
@@ -30,6 +30,9 @@ Html({
                stroke-linecap: round;
                stroke-linejoin: round;
        }
+       #code-39 {
+               white-space: nowrap;
+       }
 
        svg path:not([fill]) {
                stroke: currentColor;
@@ -77,7 +80,7 @@ else {
                                print " colspan=$colspan";
                                $colspan = 1;
                        }
-                       print ' class=ex' if s/^-//;
+                       print ' class=', $_ ? 'ex' : 'u-invalid' if s/^-//;
                        print '>';
                        say;
                }