aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/example.style.css
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-14 00:31:43 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-14 00:31:43 +0000
commit3b9ecd40b6ed9cef16a4ce87cfc12713cd7c97e9 (patch)
treed639fc4ebeb49b6248f31790a827858216e0562b /example.style.css
parent438eebf7ec01fbc8167f69287d4b4ab43d49e8d8 (diff)
downloadmandoc-3b9ecd40b6ed9cef16a4ce87cfc12713cd7c97e9.tar.gz
mandoc-3b9ecd40b6ed9cef16a4ce87cfc12713cd7c97e9.tar.zst
mandoc-3b9ecd40b6ed9cef16a4ce87cfc12713cd7c97e9.zip
Revert previous, as requested by kristaps@.
The .Bf block can contain subblocks, so it has to render as an element that can contain flow content. But <em> cannot contain flow content, only phrasing content. Rendering .Em and .Bf differently would by unfortunate, and closing out .Bf before subblocks and re-opening it afterwards would merely complicate both the C code of the program and the generated HTML code. Besides, converting .Em to semantic HTML markup would require some content to be put into <em> and some into <i>, but we cannot automatically distinguish which is which, so strictly speaking, we can't use semantic HTML here but have to fall back to physical markup. Wonders of HTML...
Diffstat (limited to 'example.style.css')
-rw-r--r--example.style.css4
1 files changed, 2 insertions, 2 deletions
diff --git a/example.style.css b/example.style.css
index e17af922..b1a925ae 100644
--- a/example.style.css
+++ b/example.style.css
@@ -1,4 +1,4 @@
-/* $Id: example.style.css,v 1.50 2014/08/13 15:25:22 schwarze Exp $ */
+/* $Id: example.style.css,v 1.51 2014/08/14 00:31:43 schwarze Exp $ */
/*
* This is an example style-sheet provided for mandoc(1) and the -Thtml
* or -Txhtml output mode.
@@ -30,7 +30,7 @@ div.mandoc .list { } /* All Bl. */
div.mandoc i { } /* Italic: BI, IB, I, (implicit). */
div.mandoc b { } /* Bold: SB, BI, IB, BR, RB, B, (implicit). */
div.mandoc small { } /* Small: SB, SM. */
-div.mandoc em { font-style: italic; font-weight: normal; } /* Emphasis: Em, Bl -emphasis. */
+div.mandoc .emph { font-style: italic; font-weight: normal; } /* Emphasis: Em, Bl -emphasis. */
div.mandoc .symb { font-style: normal; font-weight: bold; } /* Symbolic: Sy, Ms, Bf -symbolic. */
div.mandoc .lit { font-style: normal; font-weight: normal; font-family: monospace; } /* Literal: Dl, Li, Ql, Bf -literal, Bl -literal, Bl -unfilled. */
div.mandoc i.addr { font-weight: normal; } /* Address (Ad). */