From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 0ac2b44c for ; Mon, 31 Dec 2018 03:04:17 -0500 (EST) Date: Mon, 31 Dec 2018 03:04:17 -0500 (EST) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: For .EX and .EE, set the fill mode parser state directly in the X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-ID: <05f85b7ac3bc74e8@fantadrom.bsd.lv> 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