summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/roff.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2019-01-05 09:10:24 +0000
committerschwarze <schwarze@openbsd.org>2019-01-05 09:10:24 +0000
commit6bce724af3e171fc645c18626298cd17cb1693db (patch)
treee358edc9d2f66eae3c151c02e8cc34d9c54e9d8c /usr.bin/mandoc/roff.c
parentmove the DATA bytes accounting a bit earlier so that we don't have to deal (diff)
downloadwireguard-openbsd-6bce724af3e171fc645c18626298cd17cb1693db.tar.xz
wireguard-openbsd-6bce724af3e171fc645c18626298cd17cb1693db.zip
no-fill mode has to be suspended during tbl(7) rendering, too
Diffstat (limited to 'usr.bin/mandoc/roff.c')
-rw-r--r--usr.bin/mandoc/roff.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/mandoc/roff.c b/usr.bin/mandoc/roff.c
index 2f0f2fb2606..bc60408efac 100644
--- a/usr.bin/mandoc/roff.c
+++ b/usr.bin/mandoc/roff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: roff.c,v 1.232 2019/01/05 00:36:46 schwarze Exp $ */
+/* $OpenBSD: roff.c,v 1.233 2019/01/05 09:10:24 schwarze Exp $ */
/*
* Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2015, 2017-2019 Ingo Schwarze <schwarze@openbsd.org>
@@ -3190,6 +3190,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;
@@ -3334,6 +3335,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;