source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: For .EX and .EE, set the fill mode parser state directly in the
@ 2018-12-31  8:04 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2018-12-31  8:04 UTC (permalink / raw)
  To: source

Log Message:
-----------
For .EX and .EE, set the fill mode parser state directly in the
macro parsing function, in the same way as the roff parser already
does it for the .nf and .fi requests.  This is a preparation for
getting rid of the ugly function man_state() later on.

Modified Files:
--------------
    mandoc:
        man_macro.c

Revision Data
-------------
Index: man_macro.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/man_macro.c,v
retrieving revision 1.140
retrieving revision 1.141
diff -Lman_macro.c -Lman_macro.c -u -p -r1.140 -r1.141
--- man_macro.c
+++ man_macro.c
@@ -381,6 +381,11 @@ in_line_eoln(MACRO_PROT_ARGS)
 	roff_elem_alloc(man, line, ppos, tok);
 	n = man->last;
 
+	if (tok == MAN_EX)
+		man->flags |= ROFF_NOFILL;
+	else if (tok == MAN_EE)
+		man->flags &= ~ROFF_NOFILL;
+
 	for (;;) {
 		if (buf[*pos] != '\0' && man->last != n && tok == MAN_PD) {
 			mandoc_msg(MANDOCERR_ARG_EXCESS, line, *pos,
--
 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:[~2018-12-31  8:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-31  8:04 mandoc: For .EX and .EE, set the fill mode parser state directly in the 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).