summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2014-10-16 01:27:48 +0000
committerschwarze <schwarze@openbsd.org>2014-10-16 01:27:48 +0000
commite48b1a60b7a48485c1c2435cbbd0966a8649c371 (patch)
treeeda22de16e8886c4d355eddb86c67d761e8585f1
parentImplement in-line equations, much needed by Xenocara manuals. (diff)
downloadwireguard-openbsd-e48b1a60b7a48485c1c2435cbbd0966a8649c371.tar.xz
wireguard-openbsd-e48b1a60b7a48485c1c2435cbbd0966a8649c371.zip
oops, don't escape the first token of inline equations
-rw-r--r--usr.bin/mandoc/roff.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mandoc/roff.c b/usr.bin/mandoc/roff.c
index 469ad2535f9..831357989c9 100644
--- a/usr.bin/mandoc/roff.c
+++ b/usr.bin/mandoc/roff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: roff.c,v 1.102 2014/10/16 01:10:06 schwarze Exp $ */
+/* $OpenBSD: roff.c,v 1.103 2014/10/16 01:27:48 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -1881,8 +1881,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;