aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-10-25 15:23:56 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-10-25 15:23:56 +0000
commiteb1d4be7915b314c92a4c377c4a09a06e811fc57 (patch)
treeae87bc437c45eae91396b56d880811fae12d8bf5 /roff.c
parentbdc06e9bc94f24fb26627f37bbd9b2ea636f46dd (diff)
downloadmandoc-eb1d4be7915b314c92a4c377c4a09a06e811fc57.tar.gz
mandoc-eb1d4be7915b314c92a4c377c4a09a06e811fc57.tar.zst
mandoc-eb1d4be7915b314c92a4c377c4a09a06e811fc57.zip
With the current architecture, we can't support inline equations
inside tables, sorry. So don't even try to parse tbl(7) blocks for eqn(7) delimiters. Broken table layout found in glPixelMap(3) while investigating a bug report by Theo Buehler <theo at math dot ethz dot ch>.
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/roff.c b/roff.c
index 86dc402a..71ffe27e 100644
--- a/roff.c
+++ b/roff.c
@@ -1,4 +1,4 @@
-/* $Id: roff.c,v 1.235 2014/10/25 14:35:37 schwarze Exp $ */
+/* $Id: roff.c,v 1.236 2014/10/25 15:23:56 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -730,7 +730,8 @@ roff_parseln(struct roff *r, int ln, char **bufp,
/* Handle in-line equation delimiters. */
- if (r->last_eqn != NULL && r->last_eqn->delim &&
+ if (r->tbl == NULL &&
+ r->last_eqn != NULL && r->last_eqn->delim &&
(r->eqn == NULL || r->eqn_inline)) {
e = roff_eqndelim(r, bufp, szp, pos);
if (e == ROFF_REPARSE)