Properly detect section titles with two-digit minor numbers
authorFabian Keil <fk@fabiankeil.de>
Tue, 5 Feb 2013 14:04:50 +0000 (14:04 +0000)
committerFabian Keil <fk@fabiankeil.de>
Tue, 5 Feb 2013 14:04:50 +0000 (14:04 +0000)
Previously they weren't underlined and the section number
wasn't normalized.

Reported by Ralf Jungblut.

utils/prepare-configfile.pl

index 4cb8d5a..f5c9fe2 100755 (executable)
@@ -31,7 +31,7 @@ sub main() {
 
         s/^1\. \@\@TITLE\@\@/     /i;
 
-        if (m/^(\d\.)(\d\.)(\d\.)?\s/) {
+        if (m/^(\d*\.){1,3}\s/) {
             # Remove the first digit as it's the
             # config file section in the User Manual.
             s/^(\d\.)//;