diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-06-07 21:05:20 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-06-07 21:05:20 +0000 |
commit | 767a6c18cf8ed8231b0b1705e7b5e544922bc175 (patch) | |
tree | d574e362236fd5e802344ba4c3b67484cfd14573 /regress | |
parent | d3cc36a1d429e680605b0c57e8da107274147247 (diff) |
Remove "new sentence, new line" detection, covered by mandoc.
OK jmc@ wiz@
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/mdoclint/mdoclint | 10 | ||||
-rw-r--r-- | regress/usr.bin/mdoclint/mdoclint.1 | 11 |
2 files changed, 7 insertions, 14 deletions
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 |