]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installman
r1584: * Fix a bug in quoted section parsing that put the quotes in the parsed
[debhelper.git] / dh_installman
index 41fa6408548d5f455d83e37cf041f663d0eeadc0..9adca670aba1eee9f173339486df8b4ed7a8d4e7 100755 (executable)
@@ -23,8 +23,8 @@ install them based on the section field in their .TH line. If you have a
 properly formatted .TH line, your man page will be installed into the right
 directory, with the right name (this includes proper handling of pages
 with a subsection, like "3perl", which are placed in man3, and given an
-extention of ".3perl"). If your .TH line is incorrect or missing, the program
-may guess wrong based on the file extention.
+extension of ".3perl"). If your .TH line is incorrect or missing, the program
+may guess wrong based on the file extension.
 
 It also supports translated man pages, by looking for extensions
 like .ll.8 and .ll_LL.8
@@ -114,7 +114,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                        open (IN, $page) or die "$page: $!";
                }
                while (<IN>) {
-                       if (/^\.TH\s+\S+\s+(\d+\S*)\s/) {
+                       if (/^\.TH\s+\S+\s+"?(\d+[^"\s]*)"?/) {
                                $section=$1;
                                last;
                        }