aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-12-31 08:38:21 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-12-31 08:38:21 +0000
commit53029bcbfbab6179bd9e52c6d23fca731cf598d8 (patch)
tree991bb09a1c3db1c7c40697cdbd91e2d498aef430 /man.c
parent6f05a74d1a074bf18303e8d7c95cad567e72e2ea (diff)
downloadmandoc-53029bcbfbab6179bd9e52c6d23fca731cf598d8.tar.gz
mandoc-53029bcbfbab6179bd9e52c6d23fca731cf598d8.tar.zst
mandoc-53029bcbfbab6179bd9e52c6d23fca731cf598d8.zip
Use the new flag NODE_NOFILL in the validators, which is sometimes
simpler and always more robust. In particular, move the nesting warnings for .EX and .EE from man_state(), where they were misplaced, to the man(7) validator.
Diffstat (limited to 'man.c')
-rw-r--r--man.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/man.c b/man.c
index a7c8004d..93f64415 100644
--- a/man.c
+++ b/man.c
@@ -1,4 +1,4 @@
-/* $Id: man.c,v 1.184 2018/12/31 07:08:12 schwarze Exp $ */
+/* $Id: man.c,v 1.185 2018/12/31 08:38:21 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013,2014,2015,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -351,15 +351,10 @@ man_state(struct roff_man *man, struct roff_node *n)
switch(n->tok) {
case ROFF_nf:
case MAN_EX:
- if (man->flags & ROFF_NOFILL && (n->flags & NODE_VALID) == 0)
- mandoc_msg(MANDOCERR_NF_SKIP, n->line, n->pos, "nf");
man->flags |= ROFF_NOFILL;
break;
case ROFF_fi:
case MAN_EE:
- if ( (man->flags & ROFF_NOFILL) == 0 &&
- ! (n->flags & NODE_VALID))
- mandoc_msg(MANDOCERR_FI_SKIP, n->line, n->pos, "fi");
man->flags &= ~ROFF_NOFILL;
break;
default: