summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-01-05 09:10:32 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-01-05 09:10:32 +0000
commitdf6a082de3c130efd8582d20d12e3dffa98ebd8f (patch)
tree9ce4043e2146650985c0f7c8625e5a1423d7948a
parent6d983e6b91d33cfce742f7ed4b3393400fd80b02 (diff)
downloadmandoc-df6a082de3c130efd8582d20d12e3dffa98ebd8f.tar.gz
no-fill mode has to be suspended during tbl(7) rendering, too
-rw-r--r--roff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/roff.c b/roff.c
index 0b20f445..91c87149 100644
--- a/roff.c
+++ b/roff.c
@@ -3192,6 +3192,7 @@ roff_Dd(ROFF_ARGS)
static int
roff_TE(ROFF_ARGS)
{
+ r->man->flags &= ~ROFF_NONOFILL;
if (r->tbl == NULL) {
mandoc_msg(MANDOCERR_BLK_NOTOPEN, ln, ppos, "TE");
return ROFF_IGN;
@@ -3336,6 +3337,7 @@ roff_TS(ROFF_ARGS)
mandoc_msg(MANDOCERR_BLK_BROKEN, ln, ppos, "TS breaks TS");
tbl_end(r->tbl, 0);
}
+ r->man->flags |= ROFF_NONOFILL;
r->tbl = tbl_alloc(ppos, ln, r->last_tbl);
if (r->last_tbl == NULL)
r->first_tbl = r->tbl;