summaryrefslogtreecommitdiffstats
path: root/eqn_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-07-14 13:32:35 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-07-14 13:32:35 +0000
commit6743059f021b4239f933715e225da9a692cf92ff (patch)
tree3b276e8cf8f560b3be1cd5386b92c96fc266c373 /eqn_html.c
parent8673cb11940d951abb8716da996c3918208919e3 (diff)
downloadmandoc-6743059f021b4239f933715e225da9a692cf92ff.tar.gz
do not print <math class="eqn"><mrow></mrow></math> for empty .EQ;
issue reported by bentley@
Diffstat (limited to 'eqn_html.c')
-rw-r--r--eqn_html.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/eqn_html.c b/eqn_html.c
index a56c6891..c8d5b6f7 100644
--- a/eqn_html.c
+++ b/eqn_html.c
@@ -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;