summaryrefslogtreecommitdiffstats
path: root/mandoc.css
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2021-03-30 19:26:20 +0000
committerIngo Schwarze <schwarze@openbsd.org>2021-03-30 19:26:20 +0000
commit184eafa56a9bef7700f0cef2dbcaffc507d775a0 (patch)
tree332419a6f594c330550d7e1c30802a77f4ca7629 /mandoc.css
parent0ae41972c4e3731fd95da0071fd4ea8501373d4f (diff)
downloadmandoc-184eafa56a9bef7700f0cef2dbcaffc507d775a0.tar.gz
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.
Diffstat (limited to 'mandoc.css')
-rw-r--r--mandoc.css1
1 files changed, 1 insertions, 0 deletions
diff --git a/mandoc.css b/mandoc.css
index ab886c76..f3c6eb44 100644
--- a/mandoc.css
+++ b/mandoc.css
@@ -31,6 +31,7 @@ td { vertical-align: top;
ul, ol, dl { margin-top: 0em;
margin-bottom: 0em; }
li, dt { margin-top: 1em; }
+pre { font-family: inherit; }
.permalink { border-bottom: thin dotted;
color: inherit;