From c5573921b272ce5903b1846fecd6a58e1cb0e6c9 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 14 Jul 2017 13:32:35 +0000 Subject: do not print for empty .EQ; issue reported by bentley@ --- eqn_html.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eqn_html.c b/eqn_html.c index f569ec2a..51f14423 100644 --- a/eqn_html.c +++ b/eqn_html.c @@ -1,4 +1,4 @@ -/* $Id: eqn_html.c,v 1.16 2017/07/08 14:51:04 schwarze Exp $ */ +/* $Id: eqn_html.c,v 1.17 2017/07/14 13:32:35 schwarze Exp $ */ /* * Copyright (c) 2011, 2014 Kristaps Dzonsons * Copyright (c) 2017 Ingo Schwarze @@ -231,6 +231,9 @@ print_eqn(struct html *p, const struct eqn_box *bp) { struct tag *t; + if (bp->first == NULL) + return; + t = print_otag(p, TAG_MATH, "c", "eqn"); p->flags |= HTML_NONOSPACE; -- cgit v1.2.3-56-ge451