summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc_validate.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2017-06-11 14:10:24 +0000
committerschwarze <schwarze@openbsd.org>2017-06-11 14:10:24 +0000
commitabcca917dfacf8874e0a43e561cba05217c3be9c (patch)
tree2320c04473e4203da3976afd98552a8b7918e1f1 /usr.bin/mandoc/mdoc_validate.c
parentmake two macros more semantic (diff)
downloadwireguard-openbsd-abcca917dfacf8874e0a43e561cba05217c3be9c.tar.xz
wireguard-openbsd-abcca917dfacf8874e0a43e561cba05217c3be9c.zip
Do not issue the message "no blank before trailing delimiter" for .No.
In practice, that message only matters inside .Bf, and even there, it can occasionally be a false positive. In all other cases, it usually is a false positive, so it is better to drop it outright. Suggested by jmc@.
Diffstat (limited to 'usr.bin/mandoc/mdoc_validate.c')
-rw-r--r--usr.bin/mandoc/mdoc_validate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mandoc/mdoc_validate.c b/usr.bin/mandoc/mdoc_validate.c
index 4fe4f25fb10..57ab101c1d5 100644
--- a/usr.bin/mandoc/mdoc_validate.c
+++ b/usr.bin/mandoc/mdoc_validate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mdoc_validate.c,v 1.249 2017/06/10 16:53:58 schwarze Exp $ */
+/* $OpenBSD: mdoc_validate.c,v 1.250 2017/06/11 14:10:24 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -182,7 +182,7 @@ static const v_post __mdoc_valids[MDOC_MAX - MDOC_Dd] = {
NULL, /* Eo */
post_xx, /* Fx */
post_delim, /* Ms */
- post_delim, /* No */
+ NULL, /* No */
post_ns, /* Ns */
post_xx, /* Nx */
post_xx, /* Ox */
@@ -479,8 +479,8 @@ post_delim(POST_ARGS)
/* At least three alphabetic words with a sentence ending. */
if (strchr("!.:?", *lc) != NULL && (tok == MDOC_Em ||
- tok == MDOC_Li || tok == MDOC_No || tok == MDOC_Po ||
- tok == MDOC_Pq || tok == MDOC_Sy)) {
+ tok == MDOC_Li || tok == MDOC_Po || tok == MDOC_Pq ||
+ tok == MDOC_Sy)) {
nw = 0;
for (cp = lc - 1; cp >= nch->string; cp--) {
if (*cp == ' ') {