[BACK]Return to paragraph.out_html CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / mdoc / Bd

File: [cvsweb.bsd.lv] / mandoc / regress / mdoc / Bd / paragraph.out_html (download)

Revision 1.7, Tue Mar 30 19:26:21 2021 UTC (3 years, 2 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6, HEAD
Changes since 1.6: +1 -1 lines

In HTML output, correctly render .Bd -unfilled in proportionally-spaced
font, rather than with the monospace font appropriate for .Bd -literal.
This fixes a minibug reported by anton@.

Implemented by no longer relying on the typical browser default of
"pre { font-family: monospace }" but instead letting <pre> elements
inherit the font family from their parent, then adding an explicit CSS .Li
class only for those displays where the manual page author requested it
by using the -literal option on the .Bd macro.

<p class="Pp" id="npara"><a class="permalink" href="#npara">normal</a>
  paragraph</p>
<div class="Bd Pp" id="filled"><a class="permalink" href="#filled">filled</a>
  display
<p class="Pp" id="fpara"><a class="permalink" href="#fpara">paragraph</a> in
    display</p>
</div>
back to normal
<p class="Pp">another paragraph</p>
<div class="Bd Pp Li" id="unfilled">
<pre><a class="permalink" href="#unfilled">unfilled</a> literal
display
<mark id="upara"></mark>
<a class="permalink" href="#upara">unfilled</a> literal
paragraph</pre>
</div>
again back to normal
<br/>