diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2021-03-30 19:26:20 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2021-03-30 19:26:20 +0000 |
commit | 184eafa56a9bef7700f0cef2dbcaffc507d775a0 (patch) | |
tree | 332419a6f594c330550d7e1c30802a77f4ca7629 /mandoc.css | |
parent | 0ae41972c4e3731fd95da0071fd4ea8501373d4f (diff) | |
download | mandoc-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.css | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |