tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: "Anthony J. Bentley" <anthony@anjbe.name>
To: tech@mdocml.bsd.lv
Subject: Implicit whitespace around inline equations
Date: Thu, 13 Jul 2017 19:00:59 -0600	[thread overview]
Message-ID: <63490.1499994059@cathet.us> (raw)

Hi,

From glMultMatrixd(3):

    .P
    Where '$times$' denotes matrix multiplication,

This becomes the following HTML:

    <div class="Pp"></div>
    Where '
    <math class="eqn">
      <mrow><mo>&#215;</mo></mrow>
    </math>
    ' denotes matrix multiplication,

The newlines before and after the math element result in extra spaces
between the ' and the multiplication symbol.

Removing HTML_NLAROUND helps, but still results in a space after
the first ' that I haven't figured out:

Index: html.c
===================================================================
RCS file: /cvs/src/usr.bin/mandoc/html.c,v
retrieving revision 1.85
diff -u -p -r1.85 html.c
--- html.c	23 Jun 2017 02:31:39 -0000	1.85
+++ html.c	13 Jul 2017 16:02:41 -0000
@@ -82,7 +82,7 @@ static	const struct htmldata htmltags[TA
 	{"code",	0},
 	{"small",	0},
 	{"style",	HTML_NLALL | HTML_INDENT},
-	{"math",	HTML_NLALL | HTML_INDENT},
+	{"math",	HTML_NLINSIDE | HTML_INDENT},
 	{"mrow",	0},
 	{"mi",		0},
 	{"mn",		0},
--
 To unsubscribe send an email to tech+unsubscribe@mandoc.bsd.lv

             reply	other threads:[~2017-07-14  1:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-14  1:00 Anthony J. Bentley [this message]
2017-07-14 12:56 ` Ingo Schwarze

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=63490.1499994059@cathet.us \
    --to=anthony@anjbe.name \
    --cc=tech@mandoc.bsd.lv \
    --cc=tech@mdocml.bsd.lv \
    --subject='Re: Implicit whitespace around inline equations' \
    /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).