discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
* In HTML output literal blocks should strip newline before closing pre
@ 2020-10-15 20:48 Aman Verma
  2020-10-16 17:46 ` Ingo Schwarze
  0 siblings, 1 reply; 5+ messages in thread
From: Aman Verma @ 2020-10-15 20:48 UTC (permalink / raw)
  To: discuss

The problem with `.Bd -literal` blocks in HTML output is that mandoc
doesn't output the
closing pre tag on the same line. If the element is indented, browsers
will display an
extra line since pre is telling them to preserve whitespace.

A good example of the issue is
<https://mandoc.bsd.lv/man/mdoc.7.html#NAME>. The extra
space is clearly visible. The source is

        <pre>.Nm name0 ,
    .Nm name1 ,
    .Nm name2
    .Nd a one line description
        </pre>

What I'm proposing is that it should look like

        <pre>.Nm name0 ,
    .Nm name1 ,
    .Nm name2
    .Nd a one line description</pre>

This is what most Markdown processors do to solve the issue.

Best regards,
Aman
--
 To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-10-26 13:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-15 20:48 In HTML output literal blocks should strip newline before closing pre Aman Verma
2020-10-16 17:46 ` Ingo Schwarze
2020-10-25 20:45   ` Michael Stapelberg
2020-10-26 13:26     ` Ingo Schwarze
2020-10-26 13:42       ` Michael Stapelberg

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