summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-17 11:01:24 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-17 11:01:24 +0000
commit09aa9927bb049d1d607faa6ad1a3b52770414189 (patch)
treee8822ff51b7252d0adc3312a8ba7d01615499ded
parente1a4e5ea5e2b4ad66c8d17e8cc2800ba5370a3ec (diff)
downloadmandoc-09aa9927bb049d1d607faa6ad1a3b52770414189.tar.gz
Add a "list" top-level tag, too.
-rw-r--r--example.style.css3
-rw-r--r--mdoc_html.c5
2 files changed, 6 insertions, 2 deletions
diff --git a/example.style.css b/example.style.css
index c0ddd82b..2f8c4212 100644
--- a/example.style.css
+++ b/example.style.css
@@ -40,7 +40,8 @@ table { margin-top: 0px; margin-bottom: 0px; }
/* Block modes. */
-.display { }
+.display { } /* Top of all Bd, D1, Dl. */
+.list { } /* Top of all Bl. */
/* Context-specific modes. */
diff --git a/mdoc_html.c b/mdoc_html.c
index 1c405de8..16a8f64e 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -945,7 +945,10 @@ mdoc_bl_pre(MDOC_ARGS)
PAIR_STYLE_INIT(&tag[0], h);
assert(lists[n->data.Bl->type]);
- PAIR_CLASS_INIT(&tag[1], lists[n->data.Bl->type]);
+ bufinit(h);
+ bufcat(h, "list ");
+ bufcat(h, lists[n->data.Bl->type]);
+ PAIR_INIT(&tag[1], ATTR_CLASS, h->buf);
i = 2;
/* Set the block's left-hand margin. */