[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

lintian: r156 - trunk/checks



Author: djpig
Date: 2004-04-14 18:59:59 +0200 (Wed, 14 Apr 2004)
New Revision: 156

Modified:
   trunk/checks/manpages
Log:
don't warn about actually escaped minus signs *sigh*
Thanks to HE for noticing


Modified: trunk/checks/manpages
===================================================================
--- trunk/checks/manpages	2004-04-14 15:54:18 UTC (rev 155)
+++ trunk/checks/manpages	2004-04-14 16:59:59 UTC (rev 156)
@@ -244,7 +244,7 @@
 		    print "E: $pkg $type: manpage-section-mismatch $file:$lc $fn_section != $th_section\n";
 		}
 	    }
-	    if ($line =~ /^[^\.][^\\].*\W--?\w+/o) {
+	    if ($line =~ /^[^\.].*[^\w\\]--?\w+/o) {
 		# hyphen at the begin of a word, probably not!
 		$hc++;
 		print "W: $pkg $type: hyphen-used-as-minus-sign $file:$lc\n" if $hc <= 10 or $ENV{'LINTIAN_DEBUG'};



Reply to: