diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-11 14:24:55 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-11 14:24:55 +0000 |
commit | 472ac75ea82cd814223309011d195f80bdd9b820 (patch) | |
tree | 030ae16d421f88179525c14101390ab54f1b6b5a /mdoc_validate.c | |
parent | 3338b011809c802985f5b2ed8946af15ecbf4be1 (diff) | |
download | mandoc-472ac75ea82cd814223309011d195f80bdd9b820.tar.gz mandoc-472ac75ea82cd814223309011d195f80bdd9b820.tar.zst mandoc-472ac75ea82cd814223309011d195f80bdd9b820.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 'mdoc_validate.c')
-rw-r--r-- | mdoc_validate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index c90c0f0d..84ea630c 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.334 2017/06/10 16:54:16 schwarze Exp $ */ +/* $Id: mdoc_validate.c,v 1.335 2017/06/11 14:24:55 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2017 Ingo Schwarze <schwarze@openbsd.org> @@ -184,7 +184,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 */ @@ -481,8 +481,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 == ' ') { |