* Implicit whitespace around inline equations
@ 2017-07-14 1:00 Anthony J. Bentley
2017-07-14 12:56 ` Ingo Schwarze
0 siblings, 1 reply; 2+ messages in thread
From: Anthony J. Bentley @ 2017-07-14 1:00 UTC (permalink / raw)
To: tech
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>×</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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Implicit whitespace around inline equations
2017-07-14 1:00 Implicit whitespace around inline equations Anthony J. Bentley
@ 2017-07-14 12:56 ` Ingo Schwarze
0 siblings, 0 replies; 2+ messages in thread
From: Ingo Schwarze @ 2017-07-14 12:56 UTC (permalink / raw)
To: Anthony J. Bentley; +Cc: tech
Hi Anthony,
Anthony J. Bentley wrote on Thu, Jul 13, 2017 at 07:00:59PM -0600:
> From glMultMatrixd(3):
>
> .P
> Where '$times$' denotes matrix multiplication,
>
> This becomes the following HTML:
>
> <div class="Pp"></div>
> Where '
> <math class="eqn">
> <mrow><mo>×</mo></mrow>
> </math>
> ' denotes matrix multiplication,
>
> The newlines before and after the math element result in extra spaces
> between the ' and the multiplication symbol.
Fixing this might get ugly because the inline eqn(7) handling in
roff.c is a hack, because you don't want
preceding text
.EQ
a = b
.EN
following text
to render as
preceding texta = bfollowing text
and because handling of source code spacing in -Thtml is tricky.
The impact of the issue is relatively small, just some bogus
horizontal spacing.
So i have added it to the TODO list.
Similarly for opprime, which is potentially hard to implement
and does not seem very pressing.
But thanks for reporting!
Ingo
--
To unsubscribe send an email to tech+unsubscribe@mandoc.bsd.lv
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-07-14 12:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-14 1:00 Implicit whitespace around inline equations Anthony J. Bentley
2017-07-14 12:56 ` Ingo Schwarze
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).