From 691c251c8e1e7eba0ec7ef1814481f49af64f25e Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Sun, 28 Jul 2019 19:23:12 -0700 Subject: [PATCH] Improve gen-map-doc work on multi-word maps Co-authored-by: Richard Russon --- doc/gen-map-doc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/gen-map-doc b/doc/gen-map-doc index 79ff237fa..4f1733dc6 100644 --- a/doc/gen-map-doc +++ b/doc/gen-map-doc @@ -56,21 +56,21 @@ open XML, $xml or die "$xml: $!"; while () { if (/__print_map\((.*)\)/) { my $map = $1; + my $mapid = $1; my $maptitle = $1; - $maptitle =~ s/^(.)/\U$1\E/; + $mapid =~ s/\s+/-/g; + $maptitle =~ s/\b(\w)/\u$1/g; unless ($MAP{$map}) { warn "map $map undefined"; next; } - my $title = $map; - $title =~ s/(.)(.+)/\U$1\E$2/; print < + $maptitle Menu $DOC{$map} - -Default $title Menu Bindings +
+Default $maptitle Menu Bindings FunctionDefault keyDescription -- 2.40.0