diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-31 08:18:12 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-31 08:18:12 +0000 |
commit | bb49c8a742a4e663709d44ec66f5eb01dbba930e (patch) | |
tree | 4aa4eb4d3611b035c71f6f9ec7f2deb0448a40f7 /roff.c | |
parent | 9e730211d90e0003bae917b6a4c52e29a60f192a (diff) | |
download | mandoc-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |