X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/19304f7c526fbe36ba0db2fb80bcaf3bd974d81d..c71aaa5c83036e5b1685f66887d51832b6fb49f7:/doc/gen-map-doc?ds=inline diff --git a/doc/gen-map-doc b/doc/gen-map-doc index cafc68d..ad7dd68 100644 --- a/doc/gen-map-doc +++ b/doc/gen-map-doc @@ -49,17 +49,21 @@ open XML, $xml or die "$xml: $!"; while () { if (/__print_map\((.*)\)/) { my $map = $1; + my $maptitle = $1; + $maptitle =~ s/^(.)/\U$1\E/; unless ($MAP{$map}) { warn "map $map undefined"; next; } + my $title = $map; + $title =~ s/(.)(.+)/\U$1\E$2/; print < -$map menu + +$maptitle Menu $DOC{$map} - -Default $map function bindings +
+Default $title Menu Bindings FunctionDefault keyDescription @@ -73,7 +77,7 @@ $MAP{$map} EOT - delete $MAP{$1}; + delete $MAP{$map}; } else { print; }