From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 97c29a1c for ; Fri, 14 Jul 2017 08:33:06 -0500 (EST) Date: Fri, 14 Jul 2017 08:33:06 -0500 (EST) Message-Id: <9066605408242861844.enqueue@fantadrom.bsd.lv> X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: do not print for empty X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- do not print for empty .EQ; issue reported by bentley@ Modified Files: -------------- mandoc: eqn_html.c Revision Data ------------- Index: eqn_html.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/eqn_html.c,v retrieving revision 1.16 retrieving revision 1.17 diff -Leqn_html.c -Leqn_html.c -u -p -r1.16 -r1.17 --- eqn_html.c +++ eqn_html.c @@ -231,6 +231,9 @@ print_eqn(struct html *p, const struct e { struct tag *t; + if (bp->first == NULL) + return; + t = print_otag(p, TAG_MATH, "c", "eqn"); p->flags |= HTML_NONOSPACE; -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv