source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: no-fill mode has to be suspended during tbl(7) rendering, too
@ 2019-01-05  9:11 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-01-05  9:11 UTC (permalink / raw)
  To: source

Log Message:
-----------
no-fill mode has to be suspended during tbl(7) rendering, too

Modified Files:
--------------
    mandoc:
        roff.c

Revision Data
-------------
Index: roff.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/roff.c,v
retrieving revision 1.360
retrieving revision 1.361
diff -Lroff.c -Lroff.c -u -p -r1.360 -r1.361
--- roff.c
+++ 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;
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-05  9:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-05  9:11 mandoc: no-fill mode has to be suspended during tbl(7) rendering, too schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).