From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from scc-mailout-kit-01.scc.kit.edu (scc-mailout-kit-01.scc.kit.edu [129.13.231.81]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id 185e0d7c for ; Fri, 14 Jul 2017 08:35:34 -0500 (EST) Received: from asta-nat.asta.uni-karlsruhe.de ([172.22.63.82] helo=hekate.usta.de) by scc-mailout-kit-01.scc.kit.edu with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (envelope-from ) id 1dW0km-0002ph-Um; Fri, 14 Jul 2017 15:35:34 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.77) (envelope-from ) id 1dW0km-0003x0-Af; Fri, 14 Jul 2017 15:35:32 +0200 Received: from athene.usta.de ([172.24.96.10]) by donnerwolke.usta.de with esmtp (Exim 4.84_2) (envelope-from ) id 1dW0km-0000nI-2x; Fri, 14 Jul 2017 15:35:32 +0200 Received: from localhost (athene.usta.de [local]) by athene.usta.de (OpenSMTPD) with ESMTPA id 33854b80; Fri, 14 Jul 2017 15:35:32 +0200 (CEST) Date: Fri, 14 Jul 2017 15:35:32 +0200 From: Ingo Schwarze To: "Anthony J. Bentley" Cc: tech@mandoc.bsd.lv Subject: Re: eqn(7): equations with no output shouldn't emit Message-ID: <20170714133532.GC32226@athene.usta.de> References: <75476.1500014099@cathet.us> X-Mailinglist: mandoc-tech Reply-To: tech@mandoc.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <75476.1500014099@cathet.us> User-Agent: Mutt/1.6.2 (2016-07-01) Hi Anthony, Anthony J. Bentley wrote on Fri, Jul 14, 2017 at 12:34:59AM -0600: > It's very common in the libGL manuals to set delimeters early in the > document: > > .EQ > delim $$ > .EN > > In -Thtml, this becomes: > > > > Which results in unneeded vertical space in the output. Fixed with the following commit. Thanks for reporting, Ingo 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 tech+unsubscribe@mandoc.bsd.lv