From 3482d390049361a46fc425fe5791c97b2967bbdf Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 10 Jan 2017 14:09:07 +0000 Subject: simplify; NODE_ENDED does no harm in man(7) --- roff.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'roff.c') diff --git a/roff.c b/roff.c index d4d055fb..5ad37793 100644 --- a/roff.c +++ b/roff.c @@ -1059,10 +1059,7 @@ roff_word_alloc(struct roff_man *man, int line, int pos, const char *word) 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; + n->flags |= NODE_VALID | NODE_ENDED; man->next = ROFF_NEXT_SIBLING; } @@ -1147,10 +1144,7 @@ roff_addtbl(struct roff_man *man, const struct tbl_span *tbl) 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; + n->flags |= NODE_VALID | NODE_ENDED; man->next = ROFF_NEXT_SIBLING; } -- cgit