From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id s9G1ScXo001062 for ; Wed, 15 Oct 2014 21:28:38 -0400 (EDT) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.5/8.14.3/Submit) id s9G1Scg1022442; Wed, 15 Oct 2014 21:28:38 -0400 (EDT) Date: Wed, 15 Oct 2014 21:28:38 -0400 (EDT) Message-Id: <201410160128.s9G1Scg1022442@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: oops, don't escape the first token of inline equations X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- oops, don't escape the first token of inline equations Modified Files: -------------- mdocml: roff.c Revision Data ------------- Index: roff.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/roff.c,v retrieving revision 1.230 retrieving revision 1.231 diff -Lroff.c -Lroff.c -u -p -r1.230 -r1.231 --- roff.c +++ roff.c @@ -1883,8 +1883,8 @@ roff_eqndelim(struct roff *r, char **buf /* Replace the delimiter with an equation macro. */ - *szp = mandoc_asprintf(&cp1, "%s\n.E%c\n\\&%s", *bufp, - r->eqn == NULL ? 'Q' : 'N', cp2) + 1; + *szp = mandoc_asprintf(&cp1, "%s\n.E%s%s", *bufp, + r->eqn == NULL ? "Q\n" : "N\n\\&", cp2) + 1; free(*bufp); *bufp = cp1; -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv