help / color / mirror / Atom feed
From: Ingo Schwarze <>
To: "Anthony J. Bentley" <>
Subject: Re: eqn(7): equations with no output shouldn't emit <math>
Date: Fri, 14 Jul 2017 15:35:32 +0200	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

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:
> <math class="eqn"><mrow></mrow></math>
> Which results in unneeded vertical space in the output.

Fixed with the following commit.

Thanks for reporting,

Log Message:
do not print <math class="eqn"><mrow></mrow></math> for empty .EQ;
issue reported by bentley@

Modified Files:

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

      reply	other threads:[~2017-07-14 13:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-14  6:34 Anthony J. Bentley
2017-07-14 13:35 ` Ingo Schwarze [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \
    --subject='Re: eqn(7): equations with no output shouldn'\''t emit <math>' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).