From: schwarze Date: Wed, 7 Jun 2017 21:05:19 +0000 (+0000) Subject: Remove "new sentence, new line" detection, covered by mandoc. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=46e99c483af3c1fb626a6a4593aa350538b72db1;p=openbsd Remove "new sentence, new line" detection, covered by mandoc. OK jmc@ wiz@ --- diff --git a/regress/usr.bin/mdoclint/mdoclint b/regress/usr.bin/mdoclint/mdoclint index d1aa95c3dfe..86fbb872820 100644 --- a/regress/usr.bin/mdoclint/mdoclint +++ b/regress/usr.bin/mdoclint/mdoclint @@ -1,7 +1,7 @@ #!/usr/bin/perl # -# $OpenBSD: mdoclint,v 1.66 2017/06/03 12:23:13 schwarze Exp $ -# $NetBSD: mdoclint,v 1.74 2017/06/01 14:38:50 wiz Exp $ +# $OpenBSD: mdoclint,v 1.67 2017/06/07 21:05:19 schwarze Exp $ +# $NetBSD: mdoclint,v 1.76 2017/06/07 19:17:29 wiz Exp $ # # Copyright (c) 2001-2017 Thomas Klausner # All rights reserved. @@ -434,12 +434,6 @@ sub process_line if (/^\.Os\s+(.+)/o) { $s->warning(".Os used with argument `$1'") if $opt_o; } - - 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) { $s->warning("punctuation in format string ", diff --git a/regress/usr.bin/mdoclint/mdoclint.1 b/regress/usr.bin/mdoclint/mdoclint.1 index a71b599a9c2..1011cbb9f65 100644 --- a/regress/usr.bin/mdoclint/mdoclint.1 +++ b/regress/usr.bin/mdoclint/mdoclint.1 @@ -1,5 +1,5 @@ -.\" $OpenBSD: mdoclint.1,v 1.24 2017/06/03 12:23:13 schwarze Exp $ -.\" $NetBSD: mdoclint.1,v 1.20 2017/06/01 14:38:50 wiz Exp $ +.\" $OpenBSD: mdoclint.1,v 1.25 2017/06/07 21:05:19 schwarze Exp $ +.\" $NetBSD: mdoclint.1,v 1.22 2017/06/07 19:17:29 wiz Exp $ .\" .\" Copyright (c) 2001-2013 Thomas Klausner .\" All rights reserved. @@ -25,7 +25,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: June 3 2017 $ +.Dd $Mdocdate: June 7 2017 $ .Dt MDOCLINT 1 .Os .Sh NAME @@ -69,9 +69,8 @@ least in the base system, because on .Ox the current version is default). .It Fl p -Warn about possible punctuation problems at the end of macro arguments, -abuse of .Ns to get punctuation directly next to a word, -and sentences not starting on a new line. +Warn about possible punctuation problems at the end of macro arguments +and abuse of .Ns to get punctuation directly next to a word. .It Fl r Warn about missing RCS Id. .It Fl S