From eb1d4be7915b314c92a4c377c4a09a06e811fc57 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 25 Oct 2014 15:23:56 +0000 Subject: 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 . --- roff.c | 5 +++-- 1 file 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 * Copyright (c) 2010-2014 Ingo Schwarze @@ -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) -- cgit v1.2.3-56-ge451