aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit0ca95ae9ad890f540a68b9fa22e9fdf3b176669a (patch)
tree64cd3249fadb505cbcce2019b6ba0e0d13092efc
parent0b78a3a44f37b7427013aaf51e6cc2b8888b6406 (diff)
downloadmandoc-0ca95ae9ad890f540a68b9fa22e9fdf3b176669a.tar.gz
mandoc-0ca95ae9ad890f540a68b9fa22e9fdf3b176669a.tar.zst
mandoc-0ca95ae9ad890f540a68b9fa22e9fdf3b176669a.zip
Add a "list" top-level tag, too.
-rw-r--r--example.style.css5
-rw-r--r--mdoc_html.c7
2 files changed, 8 insertions, 4 deletions
diff --git a/example.style.css b/example.style.css
index ca30722c..de85e0ee 100644
--- a/example.style.css
+++ b/example.style.css
@@ -1,4 +1,4 @@
-/* $Id: example.style.css,v 1.32 2010/12/17 10:37:26 kristaps Exp $ */
+/* $Id: example.style.css,v 1.33 2010/12/17 11:01:24 kristaps Exp $ */
html { min-width: 580px; width: 580px; }
body { font-family: monospace; }
@@ -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 f8cece6d..be680be2 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.127 2010/12/17 10:43:51 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.128 2010/12/17 11:01:24 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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. */