git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f1bebae
)
keyboard: cleanup legend column grouping code
author
Mischa POSLAWSKY
<perl@shiar.org>
Fri, 15 Dec 2023 01:03:47 +0000
(
02:03
+0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 19 Dec 2023 23:54:11 +0000
(
00:54
+0100)
keyboard.plp
patch
|
blob
|
history
diff --git
a/keyboard.plp
b/keyboard.plp
index d40c434f62d833c17ee6f768d2d0943937a7641d..ea62b5a5284a9bf4c13fb126493a8b3c04c2f5e1 100644
(file)
--- a/
keyboard.plp
+++ b/
keyboard.plp
@@
-39,14
+39,15
@@
$keys->print_rows($get{rows}, $info->{rows});
say "<hr/>\n";
say '<div class="help">';
say "<hr/>\n";
say '<div class="help">';
+ use List::MoreUtils qw( part );
+ my @gflags = part {/^g\d/} sort keys %{ $keys->{flag} };
+
say "\t", '<div class="left">';
say "\t", '<div class="left">';
- my @groups = sort grep {/^g\d/} keys %{ $keys->{flag} };
- $keys->print_legend('legend-types', \@groups);
+ $keys->print_legend('legend-types', $gflags[1]);
say "\t</div>\n";
say "\t", '<div class="right">';
say "\t</div>\n";
say "\t", '<div class="right">';
- my @attr = sort grep {!/^g\d/} keys %{ $keys->{flag} };
- $keys->print_legend('legend-options', \@attr);
+ $keys->print_legend('legend-options', $gflags[0]);
say '';
say "\t\t", '<ul class="legend legend-set">';
say '';
say "\t\t", '<ul class="legend legend-set">';