font: fix code warning about sprintf arguments
authorMischa POSLAWSKY <perl@shiar.org>
Sat, 16 Oct 2021 22:58:25 +0000 (00:58 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 25 Oct 2021 14:33:21 +0000 (16:33 +0200)
font.plp

index ec612023291030774088846b84e069c3c4020c43..07df3bdb436dae43bffb2f3b2e059d9ffa05fd34 100644 (file)
--- a/font.plp
+++ b/font.plp
@@ -158,10 +158,11 @@ EOT
                # display literal character, with placeholder circle if non-spacing/enclosing
                my $html = ($class =~ /\bM[ne]\b/ && chr 9676) . EscapeHTML(chr $cp);
                say sprintf '<td class="%s" title="U+%04X%s">%s',
-                       !$class ? ('l0', $cp, '', '') :
+                       !$class ? ('l0', $cp, '', '') : (
                        $cover{$cp} ? $np ? 'l2' : 'l5' : $np ? 'Xi' : 'l1',
                        $cp, !!$name && ": $name",
-                       ($cover{$cp} || !$np) && $html;
+                       ($cover{$cp} || !$np) && $html
+                       );
        }
        say '</table>';