summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-10-16 01:28:38 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-10-16 01:28:38 +0000
commit0f914316c7fac59532818a80b733a10842fb51ee (patch)
treede998056ecc639ec06a4fece8cf50498ac21af25
parent1355393bef46aede0de7305138dd0b3b3dab287c (diff)
downloadmandoc-0f914316c7fac59532818a80b733a10842fb51ee.tar.gz
oops, don't escape the first token of inline equations
-rw-r--r--roff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/roff.c b/roff.c
index 4bbb48e3..c68c88ff 100644
--- a/roff.c
+++ b/roff.c
@@ -1883,8 +1883,8 @@ roff_eqndelim(struct roff *r, char **bufp, size_t *szp, int pos)
/* 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;