=================================================================== RCS file: /cvs/mandoc/mdoc_validate.c,v retrieving revision 1.343 retrieving revision 1.344 diff -u -p -r1.343 -r1.344 --- mandoc/mdoc_validate.c 2017/06/25 17:43:45 1.343 +++ mandoc/mdoc_validate.c 2017/06/27 12:18:00 1.344 @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.343 2017/06/25 17:43:45 schwarze Exp $ */ +/* $Id: mdoc_validate.c,v 1.344 2017/06/27 12:18:00 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2017 Ingo Schwarze @@ -1983,10 +1983,13 @@ post_hyph(POST_ARGS) static void post_ns(POST_ARGS) { + struct roff_node *n; - if (mdoc->last->flags & NODE_LINE) + n = mdoc->last; + if (n->flags & NODE_LINE || + (n->next != NULL && n->next->flags & NODE_DELIMC)) mandoc_msg(MANDOCERR_NS_SKIP, mdoc->parse, - mdoc->last->line, mdoc->last->pos, NULL); + n->line, n->pos, NULL); } static void