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 | 6f05a74d1a074bf18303e8d7c95cad567e72e2ea (patch) | |
tree | 1598ff9a593ee47b7530f102339baa8252a1f708 /roff.c | |
parent | 8027bf3a863c4dd65487affc9c5299479fb0d20f (diff) | |
download | mandoc-6f05a74d1a074bf18303e8d7c95cad567e72e2ea.tar.gz mandoc-6f05a74d1a074bf18303e8d7c95cad567e72e2ea.tar.zst mandoc-6f05a74d1a074bf18303e8d7c95cad567e72e2ea.zip |
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 | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.358 2018/12/31 07:08:12 schwarze Exp $ */ +/* $Id: roff.c,v 1.359 2018/12/31 08:18:12 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org> @@ -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; |