X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/cf63fca8357771e9f99c05319bf7ae1d9325cbd8..7030641da6e071e839134f27adcf3e9576998e5b:/eqn_html.c diff --git a/eqn_html.c b/eqn_html.c index f569ec2a..1fe41ecb 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.18 2018/12/13 05:23:38 schwarze Exp $ */ /* * Copyright (c) 2011, 2014 Kristaps Dzonsons * Copyright (c) 2017 Ingo Schwarze @@ -26,6 +26,7 @@ #include #include "mandoc.h" +#include "eqn.h" #include "out.h" #include "html.h" @@ -231,6 +232,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;