diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-01-10 14:09:07 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-01-10 14:09:07 +0000 |
commit | 3482d390049361a46fc425fe5791c97b2967bbdf (patch) | |
tree | 3f303f96bf6aeaf2b027966d0d3c0d5de9e63a57 | |
parent | 8d7c45893d14200cf487664ea9966f4c64db548d (diff) | |
download | mandoc-3482d390049361a46fc425fe5791c97b2967bbdf.tar.gz |
simplify; NODE_ENDED does no harm in man(7)
-rw-r--r-- | roff.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -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; } |