From cd1aa5e48c47c1830a8e205ee1d7366d7d08c59e Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 29 Mar 2017 13:52:16 +0200 Subject: [PATCH] charset: prefer manual definitions over continuations Respect custom workarounds if ever needed. --- charset.plp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charset.plp b/charset.plp index bd20ca9..3315669 100644 --- a/charset.plp +++ b/charset.plp @@ -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; -- 2.30.0