From 87085601ca0fa352ecdebbaa37a54400c43ec8c1 Mon Sep 17 00:00:00 2001
From: Fabian Keil <fk@fabiankeil.de>
Date: Tue, 5 Feb 2013 14:04:50 +0000
Subject: [PATCH] Properly detect section titles with two-digit minor numbers

Previously they weren't underlined and the section number
wasn't normalized.

Reported by Ralf Jungblut.
---
 utils/prepare-configfile.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/prepare-configfile.pl b/utils/prepare-configfile.pl
index 4cb8d5af..f5c9fe2b 100755
--- a/utils/prepare-configfile.pl
+++ b/utils/prepare-configfile.pl
@@ -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\.)//;
-- 
2.50.1