aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.css
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-05-09 00:46:10 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-05-09 00:46:10 +0000
commit8146f18c9d4d17026c0a4ae5ed85ea5907bf38fc (patch)
tree5b53a53e71f76bae69a7632586ac545c8d80b651 /mandoc.css
parent35d4aaed89e7337b61f0213b253b9bee370ad2c3 (diff)
downloadmandoc-8146f18c9d4d17026c0a4ae5ed85ea5907bf38fc.tar.gz
mandoc-8146f18c9d4d17026c0a4ae5ed85ea5907bf38fc.tar.zst
mandoc-8146f18c9d4d17026c0a4ae5ed85ea5907bf38fc.zip
Fix a long-standing issue:
Some macros (Nd, Oo) can contain blocks but rendered as elements that can only contain phrasing content, resulting in invalid HTML nesting. Switch them to <div>. Also move the related "display: inline" style from the HTML to the CSS. Reminded during a conversation with John Gardner.
Diffstat (limited to 'mandoc.css')
-rw-r--r--mandoc.css7
1 files changed, 4 insertions, 3 deletions
diff --git a/mandoc.css b/mandoc.css
index 57278ca3..dbedcb75 100644
--- a/mandoc.css
+++ b/mandoc.css
@@ -1,4 +1,4 @@
-/* $Id: mandoc.css,v 1.25 2018/05/08 21:42:34 schwarze Exp $ */
+/* $Id: mandoc.css,v 1.26 2018/05/09 00:46:10 schwarze Exp $ */
/*
* Standard style sheet for mandoc(1) -Thtml and man.cgi(8).
*/
@@ -41,7 +41,7 @@ table.head { width: 100%;
td.head-vol { text-align: center; }
td.head-rtitle {
text-align: right; }
-span.Nd { }
+div.Nd { display: inline; }
table.foot { width: 100%;
border-top: 1px dotted #808080;
@@ -164,7 +164,7 @@ code.Cm { font-style: normal;
font-family: inherit; }
var.Ar { font-style: italic;
font-weight: normal; }
-span.Op { }
+div.Op { display: inline; }
code.Ic { font-style: normal;
font-weight: bold;
font-family: inherit; }
@@ -216,6 +216,7 @@ a.Ux { }
/* Physical markup. */
+.Bf { display: inline; }
.No { font-style: normal;
font-weight: normal; }
.Em { font-style: italic;