]> git.llucax.com Git - software/mutt-debian.git/blobdiff - doc/gen-map-doc
Don't sort patchlist (the manual sorting in the series file is better)
[software/mutt-debian.git] / doc / gen-map-doc
index cafc68d10fd76f6e00feefb24ab649daa78b5886..1a99cf8f2ffcd034621860de553196a8bceadd28 100644 (file)
@@ -49,17 +49,19 @@ open XML, $xml or die "$xml: $!";
 while (<XML>) {
   if (/__print_map\((.*)\)/) {
     my $map = $1;
+    my $maptitle = $1;
+    $maptitle =~ s/^(.)/\U$1\E/;
     unless ($MAP{$map}) {
       warn "map $map undefined";
       next;
     }
     print <<EOT;
-<sect2 id="${map}_map">
-<title>$map menu</title>
+<sect2 id="${map}-map">
+<title>$maptitle Menu</title>
 $DOC{$map}
 
-<table id="${map}_table">
-<title>Default $map function bindings</title>
+<table id="${map}-table">
+<title>Default $map Function Bindings</title>
 <tgroup cols="3">
 <thead>
 <row><entry>Function</entry><entry>Default key</entry><entry>Description</entry></row>
@@ -73,7 +75,7 @@ $MAP{$map}
 </sect2>
 
 EOT
-    delete $MAP{$1};
+    delete $MAP{$map};
   } else {
     print;
   }