summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-01-10 14:09:07 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-01-10 14:09:07 +0000
commit3482d390049361a46fc425fe5791c97b2967bbdf (patch)
tree3f303f96bf6aeaf2b027966d0d3c0d5de9e63a57
parent8d7c45893d14200cf487664ea9966f4c64db548d (diff)
downloadmandoc-3482d390049361a46fc425fe5791c97b2967bbdf.tar.gz
simplify; NODE_ENDED does no harm in man(7)
-rw-r--r--roff.c10
1 files changed, 2 insertions, 8 deletions
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;
}