writing: consistent cell class in legend
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 23 Apr 2017 19:00:23 +0000 (21:00 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 25 May 2017 20:13:06 +0000 (22:13 +0200)
Enforce .X, adding it on .ex column.

Shiar_Sheet/FormatChar.pm

index 6772dfc..839144f 100644 (file)
@@ -276,17 +276,17 @@ sub print {
 
 sub legend {
        my @classes = (
-               ["X l5" => 'unicode 1.1'],
-               ["X l4" => '20th century'],
-               ["X l3" => 'in 6.0 (2010)'],
-               ["X l2" => 'recent assignments'],
-               ["X l1" => 'proposed'],
-               ["ex"   => 'irregular'],
+               [l5 => 'unicode 1.1'],
+               [l4 => '20th century'],
+               [l3 => 'in 6.0 (2010)'],
+               [l2 => 'recent assignments'],
+               [l1 => 'proposed'],
+               [ex => 'irregular'],
        );
 
        return (
                '<div class="legend"><table class="glyphs"><tr>',
-               (map { sprintf '<td class="%s">%s', @{$_} } @classes),
+               (map { sprintf '<td class="%s">%s', @{$_} } @classes),
                '</table></div>',
        );
 }