diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-25 15:23:56 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-25 15:23:56 +0000 |
commit | eb1d4be7915b314c92a4c377c4a09a06e811fc57 (patch) | |
tree | ae87bc437c45eae91396b56d880811fae12d8bf5 /roff.c | |
parent | bdc06e9bc94f24fb26627f37bbd9b2ea636f46dd (diff) | |
download | mandoc-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |