=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/roff.c,v retrieving revision 1.157 retrieving revision 1.158 diff -c -r1.157 -r1.158 *** src/usr.bin/mandoc/roff.c 2017/01/10 13:46:53 1.157 --- src/usr.bin/mandoc/roff.c 2017/01/10 14:09:03 1.158 *************** *** 1,4 **** ! /* $OpenBSD: roff.c,v 1.157 2017/01/10 13:46:53 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2010-2015 Ingo Schwarze --- 1,4 ---- ! /* $OpenBSD: roff.c,v 1.158 2017/01/10 14:09:03 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2010-2015 Ingo Schwarze *************** *** 1057,1066 **** n = roff_node_alloc(man, line, pos, ROFFT_TEXT, TOKEN_NONE); n->string = roff_strdup(man->roff, word); roff_node_append(man, n); ! if (man->macroset == MACROSET_MDOC) ! n->flags |= NODE_VALID | NODE_ENDED; ! else ! n->flags |= NODE_VALID; man->next = ROFF_NEXT_SIBLING; } --- 1057,1063 ---- n = roff_node_alloc(man, line, pos, ROFFT_TEXT, TOKEN_NONE); n->string = roff_strdup(man->roff, word); roff_node_append(man, n); ! n->flags |= NODE_VALID | NODE_ENDED; man->next = ROFF_NEXT_SIBLING; } *************** *** 1145,1154 **** n = roff_node_alloc(man, tbl->line, 0, ROFFT_TBL, TOKEN_NONE); n->span = tbl; roff_node_append(man, n); ! if (man->macroset == MACROSET_MDOC) ! n->flags |= NODE_VALID | NODE_ENDED; ! else ! n->flags |= NODE_VALID; man->next = ROFF_NEXT_SIBLING; } --- 1142,1148 ---- n = roff_node_alloc(man, tbl->line, 0, ROFFT_TBL, TOKEN_NONE); n->span = tbl; roff_node_append(man, n); ! n->flags |= NODE_VALID | NODE_ENDED; man->next = ROFF_NEXT_SIBLING; }