summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2017-06-23 19:16:50 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2017-06-23 19:16:50 +0000
commitaec7cbf481387680d7b2094d191416772703ed2e (patch)
tree2ed1c41e7a9cffb0067c233c04d2d6936330791e /regress
parenta24f2f8dae9c79602b889b057e4bcedbcbcc2a0d (diff)
delete warning about missing whitespace before trailing punctuation;
mandoc handles this now, not in exactly the same way, but catching all the important cases, and with less false positives; no objection from jmc@
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/mdoclint/mdoclint7
-rw-r--r--regress/usr.bin/mdoclint/mdoclint.15
2 files changed, 3 insertions, 9 deletions
diff --git a/regress/usr.bin/mdoclint/mdoclint b/regress/usr.bin/mdoclint/mdoclint
index 771b5bbb4b3..31ba8af245b 100644
--- a/regress/usr.bin/mdoclint/mdoclint
+++ b/regress/usr.bin/mdoclint/mdoclint
@@ -1,6 +1,6 @@
#!/usr/bin/perl
#
-# $OpenBSD: mdoclint,v 1.70 2017/06/23 19:07:25 schwarze Exp $
+# $OpenBSD: mdoclint,v 1.71 2017/06/23 19:16:49 schwarze Exp $
# $NetBSD: mdoclint,v 1.77 2017/06/08 10:19:56 wiz Exp $
#
# Copyright (c) 2001-2017 Thomas Klausner
@@ -335,11 +335,6 @@ sub process_line
if (/^\.Os\s+(.+)/o) {
$s->warning(".Os used with argument `$1'") if $opt_o;
}
- if (/^\... .*[^\s][\.();,\[\]\{\}:]$/o
- and not /\s\.\.\.$/o and not /\\&.$/o) {
- $s->warning("punctuation in format string ",
- "without space: `$_'") if $opt_p;
- }
if (/^\./o and /Ns [\.();,\[\]\{\}:]/o) {
$s->warning("possible Ns abuse: `$_'") if $opt_p;
}
diff --git a/regress/usr.bin/mdoclint/mdoclint.1 b/regress/usr.bin/mdoclint/mdoclint.1
index b2b85e01a71..206d6226e02 100644
--- a/regress/usr.bin/mdoclint/mdoclint.1
+++ b/regress/usr.bin/mdoclint/mdoclint.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mdoclint.1,v 1.28 2017/06/23 19:07:25 schwarze Exp $
+.\" $OpenBSD: mdoclint.1,v 1.29 2017/06/23 19:16:49 schwarze Exp $
.\" $NetBSD: mdoclint.1,v 1.23 2017/06/08 10:19:56 wiz Exp $
.\"
.\" Copyright (c) 2001-2013 Thomas Klausner
@@ -63,8 +63,7 @@ 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
-and abuse of .Ns to get punctuation directly next to a word.
+Warn about abuse of .Ns to get punctuation directly next to a word.
.It Fl S
Warn about any unknown sections or about a section that comes in the
wrong order (see