From: Fabian Keil <fk@fabiankeil.de>
Date: Tue, 5 Feb 2013 14:04:50 +0000 (+0000)
Subject: Properly detect section titles with two-digit minor numbers
X-Git-Tag: v_3_0_21~66
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/static/gitweb.js?a=commitdiff_plain;h=87085601ca0fa352ecdebbaa37a54400c43ec8c1;p=privoxy.git

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.
---

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\.)//;