summaryrefslogtreecommitdiffstats
path: root/roff.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-12-31 08:18:12 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-12-31 08:18:12 +0000
commitbb49c8a742a4e663709d44ec66f5eb01dbba930e (patch)
tree4aa4eb4d3611b035c71f6f9ec7f2deb0448a40f7 /roff.c
parent9e730211d90e0003bae917b6a4c52e29a60f192a (diff)
downloadmandoc-bb49c8a742a4e663709d44ec66f5eb01dbba930e.tar.gz
Store the fill mode with a new flag NODE_NOFILL in every node,
like it is already done with NODE_SYNPRETTY, such that the fill mode becomes more directly available to the formatters. Not used yet, but will be used by upcoming commits.
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/roff.c b/roff.c
index 960e26b8..a4215d38 100644
--- a/roff.c
+++ b/roff.c
@@ -889,6 +889,10 @@ roff_node_alloc(struct roff_man *man, int line, int pos,
n->flags |= NODE_SYNPRETTY;
else
n->flags &= ~NODE_SYNPRETTY;
+ if (man->flags & ROFF_NOFILL)
+ n->flags |= NODE_NOFILL;
+ else
+ n->flags &= ~NODE_NOFILL;
if (man->flags & MDOC_NEWLINE)
n->flags |= NODE_LINE;
man->flags &= ~MDOC_NEWLINE;