diff options
author | wiz <wiz@pkgsrc.org> | 2013-03-06 22:21:36 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2013-03-06 22:21:36 +0000 |
commit | cd28550feb749e6e02d63e6a7efe7360c3aeec46 (patch) | |
tree | 42c83ddab98f11d6acf7f40f46007a0c84c49872 /textproc | |
parent | b373a476ba9dc8718c071b0f87686489e5e05aab (diff) | |
download | pkgsrc-cd28550feb749e6e02d63e6a7efe7360c3aeec46.tar.gz |
Fix some incorrect warnings about 'new sentence, new line'. Ride bump.
Diffstat (limited to 'textproc')
-rwxr-xr-x | textproc/mdoclint/files/mdoclint | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/textproc/mdoclint/files/mdoclint b/textproc/mdoclint/files/mdoclint index d50fdc2bfca..a469fd2a960 100755 --- a/textproc/mdoclint/files/mdoclint +++ b/textproc/mdoclint/files/mdoclint @@ -1,7 +1,7 @@ #!@PERL5@ # # $OpenBSD: mdoclint,v 1.14 2009/04/13 12:40:05 espie Exp $ -# $NetBSD: mdoclint,v 1.24 2013/03/06 22:09:01 wiz Exp $ +# $NetBSD: mdoclint,v 1.25 2013/03/06 22:21:36 wiz Exp $ # # Copyright (c) 2001-2013 Thomas Klausner # All rights reserved. @@ -531,8 +531,10 @@ sub process_line $s->warning(".Nd ends with a dot: `$_'") if $opt_n; } - if (/\w\w\.\s+[A-Z]/o) { - $s->warning("new sentence, new line: `$_'") if $opt_p; + if (/(\w\w)\.\s+[A-Z]/o and not /^.%T/ and not $s->{inliteral}) { + if ("$1" ne "St") { + $s->warning("new sentence, new line: `$_'") if $opt_p; + } } if (/^\... .*[^\s][\.();,\[\]\{\}:]$/o and not /\s\.\.\.$/o and not /\\&.$/o) { |