charset: silence warning of empty cell arguments
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 27 May 2019 21:38:49 +0000 (23:38 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 3 Jul 2019 16:15:02 +0000 (18:15 +0200)
Ignored arguments cause a harmless warning with newer perls:
> Redundant argument in sprintf

charset.plp

index f9c50d87616715b9d304f6a16e06f4a8a8dc3f89..c924d5e8a19feb48fcd7682e23caa7bcf42b0e08 100644 (file)
@@ -347,8 +347,8 @@ for my $row (@request) {
                                $visible->{$glyph}++;
                        }
 
                                $visible->{$glyph}++;
                        }
 
-                       say sprintf $class ? '<td title="%s" class="X %s">%s' : '<td title="%s">',
-                               $name, $class, $cell;
+                       print '<td title="%s"', $name;
+                       say $class ? sprintf(' class="X %s">%s', $class, $cell) : '>';
                }
                continue {
                        $offset += $colsize;
                }
                continue {
                        $offset += $colsize;