From: Mischa POSLAWSKY Date: Sat, 16 Oct 2021 22:58:25 +0000 (+0200) Subject: font: fix code warning about sprintf arguments X-Git-Tag: v1.13~141 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/338647d07cc1d93ccb35d47e937b38e7f8ac3e05 font: fix code warning about sprintf arguments --- diff --git a/font.plp b/font.plp index ec61202..07df3bd 100644 --- 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 '%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 '';