charset: prefer manual definitions over continuations
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 29 Mar 2017 11:52:16 +0000 (13:52 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 29 Mar 2017 11:53:09 +0000 (13:53 +0200)
Respect custom workarounds if ever needed.

charset.plp

index bd20ca9ef47a1234742236ef0592d33d735aa5a1..33156693d3f15c24a877b5645e86af041c5ebbe2 100644 (file)
@@ -124,7 +124,7 @@ sub range_cell {
                $cols = $len if $len < $cols; #TODO: optimise
                if ($len -= $cols) {
                        # continued on new row
-                       $table->{$offset + $nibsize*$cols} = [$len*$nibsize, "$class joinu", $name, $title];
+                       $table->{$offset + $nibsize*$cols} //= [$len*$nibsize, "$class joinu", $name, $title];
                        $name = '';
                        $class .= ' joind';
                }
@@ -134,7 +134,7 @@ sub range_cell {
                # multiple full rows
                if ($len -= $rows << 4) {
                        # partial row remains
-                       $table->{$offset + $nibsize*$rows * 16} = [$len*$nibsize, "$class joinu", '', $title];
+                       $table->{$offset + $nibsize*$rows * 16} //= [$len*$nibsize, "$class joinu", '', $title];
                        $class .= ' joind';
                }
                $attr .= sprintf ' rowspan=%d', $rows;