tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Ingo Schwarze <schwarze@usta.de>
To: "Anthony J. Bentley" <anthony@anjbe.name>
Cc: tech@mandoc.bsd.lv
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: <20170714133532.GC32226@athene.usta.de> (raw)
In-Reply-To: <75476.1500014099@cathet.us>

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,
  Ingo


Log Message:
-----------
do not print <math class="eqn"><mrow></mrow></math> 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

      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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=20170714133532.GC32226@athene.usta.de \
    --to=schwarze@usta.de \
    --cc=anthony@anjbe.name \
    --cc=tech@mandoc.bsd.lv \
    --subject='Re: eqn(7): equations with no output shouldn'\''t emit <math>' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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).