aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff.c
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
commit3b2a0945b5ed108c60a317a21b84e4da6b52b312 (patch)
tree17fbbb5e5f3c8031d7fa0660c8caa3ec4e3746ff /roff.c
parent5ed742dc63b34ff435a2b04d4e14fcb6081d49b0 (diff)
downloadmandoc-3b2a0945b5ed108c60a317a21b84e4da6b52b312.tar.gz
mandoc-3b2a0945b5ed108c60a317a21b84e4da6b52b312.tar.zst
mandoc-3b2a0945b5ed108c60a317a21b84e4da6b52b312.zip
oops, don't escape the first token of inline equations
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/roff.c b/roff.c
index 60ebe550..97ae08d8 100644
--- a/roff.c
+++ b/roff.c
@@ -1,4 +1,4 @@
-/* $Id: roff.c,v 1.230 2014/10/16 01:11:20 schwarze Exp $ */
+/* $Id: roff.c,v 1.231 2014/10/16 01:28:38 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -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;