lintian: r838 - in trunk: checks debian
Author: rra
Date: 2007-03-27 04:32:06 +0200 (Tue, 27 Mar 2007)
New Revision: 838
Modified:
trunk/checks/manpages
trunk/debian/changelog
Log:
* checks/manpages:
+ [RA] When checking for hyphen used as a minus sign, avoid false
positives on \s-1 (small font) and \*(-- (pod2man long dash).
Modified: trunk/checks/manpages
===================================================================
--- trunk/checks/manpages 2007-03-18 21:13:33 UTC (rev 837)
+++ trunk/checks/manpages 2007-03-27 02:32:06 UTC (rev 838)
@@ -310,8 +310,13 @@
tag "manpage-section-mismatch", "$file:$lc $fn_section != $th_section";
}
}
- if ($line =~ /^[^\.].*[^\w\\]--?\w+/o) {
- # hyphen at the begin of a word, probably not!
+ # 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).
+ if ($line =~ /^[^\.].*
+ [^\w\\]
+ (?<! \\s | \*\( | \(- )
+ (--?\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-03-18 21:13:33 UTC (rev 837)
+++ trunk/debian/changelog 2007-03-27 02:32:06 UTC (rev 838)
@@ -37,6 +37,9 @@
Aoki for the suggestion. (Closes: #405840)
+ [RA] Recognize the +bX convention for binary NMUs. Warn about use
of the old three-part version numbers.
+ * checks/manpages:
+ + [RA] When checking for hyphen used as a minus sign, avoid false
+ positives on \s-1 (small font) and \*(-- (pod2man long dash).
* checks/menu-format{.desc,}:
+ [RA] If a menu icon isn't an absolute path, only look for it in
/usr/share/pixmaps, not in the old X11R6 paths. Update the long tag
Reply to: