summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-15 16:08:18 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-15 16:08:18 +0000
commitb45f50fbb653e0e6080651278cdf0815edaaad2b (patch)
tree056ed822a9007732e10451671455d0525604040e /mdoc_html.c
parentbcfe212950ee8771555fb62a002b3dac21750c10 (diff)
downloadmandoc-b45f50fbb653e0e6080651278cdf0815edaaad2b.tar.gz
Clarify purpose of "lit".
Make `Dl' and `D1' both use BLOCKQUOTE instead of DIVs.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 791a072b..73b2ad5d 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1133,13 +1133,17 @@ mdoc_d1_pre(MDOC_ARGS)
if (MDOC_BLOCK != n->type)
return(1);
- /* FIXME: D1 shouldn't be literal. */
+ SCALE_VS_INIT(&su, 0);
+ bufcat_su(h, "margin-top", &su);
+ bufcat_su(h, "margin-bottom", &su);
+ PAIR_STYLE_INIT(&tag[0], h);
+
+ if (MDOC_Dl == n->tok) {
+ PAIR_CLASS_INIT(&tag[1], "lit");
+ print_otag(h, TAG_BLOCKQUOTE, 2, tag);
+ } else
+ print_otag(h, TAG_BLOCKQUOTE, 1, tag);
- SCALE_VS_INIT(&su, INDENT - 2);
- bufcat_su(h, "margin-left", &su);
- PAIR_CLASS_INIT(&tag[0], "lit");
- PAIR_STYLE_INIT(&tag[1], h);
- print_otag(h, TAG_DIV, 2, tag);
return(1);
}