From 338647d07cc1d93ccb35d47e937b38e7f8ac3e05 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sun, 17 Oct 2021 00:58:25 +0200 Subject: [PATCH] font: fix code warning about sprintf arguments --- font.plp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ''; -- 2.30.0