=================================================================== RCS file: /cvs/mandoc/eqn_html.c,v retrieving revision 1.16 retrieving revision 1.18 diff -u -p -r1.16 -r1.18 --- mandoc/eqn_html.c 2017/07/08 14:51:04 1.16 +++ mandoc/eqn_html.c 2018/12/13 05:23:38 1.18 @@ -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" @@ -230,6 +231,9 @@ void 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");