Author: rra
Date: 2007-04-25 22:22:19 +0200 (Wed, 25 Apr 2007)
New Revision: 860

Modified:
   trunk/checks/manpages
   trunk/debian/changelog
Log:
* checks/manpages:
  + [RA] Cope with more uses of - in *roff escapes that don't need
    hyphen warnings.

Modified: trunk/checks/manpages
===================================================================
--- trunk/checks/manpages       2007-04-25 04:21:22 UTC (rev 859)
+++ trunk/checks/manpages       2007-04-25 20:22:19 UTC (rev 860)
@@ -300,10 +300,10 @@
            }
            # Catch hyphens used as minus signs by looking for ones at the
            # beginning of a word, but don't generate false positives on \s-1
-           # (small font) or \*(-- (pod2man long dash).
+           # (small font), \*(-- (pod2man long dash), or things like \h'-1'.
            if ($line =~ /^[^\.].*
                           [^\w\\]
-                          (?<! \\s | \*\( | \(- )
+                          (?<! \\s | \*\( | \(- | \w\' )
                           (--?\w+)/ox) {
                $hc++;
                tag "hyphen-used-as-minus-sign", "$file:$lc" if $hc <= 10 or 
$ENV{'LINTIAN_DEBUG'};

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2007-04-25 04:21:22 UTC (rev 859)
+++ trunk/debian/changelog      2007-04-25 20:22:19 UTC (rev 860)
@@ -24,6 +24,9 @@
     + [RA] Don't warn about a missing md5sums file if the package contains
       nothing for which we would generate an MD5 checksum.  Thanks,
       Andreas Beckmann.  (Closes: #420465)
+  * checks/manpages:
+    + [RA] Cope with more uses of - in *roff escapes that don't need
+      hyphen warnings.
   * checks/rules:
     + [RA] Listing a rule as a dependency of .PHONY is sufficient to mark
       it as present for GNU make and hence sufficient for Policy's
@@ -38,7 +41,7 @@
       they're probably only using it as a fallback).  Based on a patch by
       Luk Claes.  (Closes: #231770)
 
- -- Russ Allbery <[EMAIL PROTECTED]>  Tue, 24 Apr 2007 21:18:56 -0700
+ -- Russ Allbery <[EMAIL PROTECTED]>  Wed, 25 Apr 2007 13:22:11 -0700
 
 lintian (1.23.29) unstable; urgency=low
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to