From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (kristaps@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id oBHB1O19015403 for ; Fri, 17 Dec 2010 06:01:24 -0500 (EST) Received: (from kristaps@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id oBHB1Od0002298; Fri, 17 Dec 2010 06:01:24 -0500 (EST) Date: Fri, 17 Dec 2010 06:01:24 -0500 (EST) Message-Id: <201012171101.oBHB1Od0002298@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: kristaps@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Add a "list" top-level tag, too. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Add a "list" top-level tag, too. Modified Files: -------------- mdocml: example.style.css mdoc_html.c Revision Data ------------- Index: mdoc_html.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_html.c,v retrieving revision 1.127 retrieving revision 1.128 diff -Lmdoc_html.c -Lmdoc_html.c -u -p -r1.127 -r1.128 --- mdoc_html.c +++ 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. */ Index: example.style.css =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/example.style.css,v retrieving revision 1.32 retrieving revision 1.33 diff -Lexample.style.css -Lexample.style.css -u -p -r1.32 -r1.33 --- example.style.css +++ example.style.css @@ -40,7 +40,8 @@ table { margin-top: 0px; margin-bottom: /* Block modes. */ -.display { } +.display { } /* Top of all Bd, D1, Dl. */ +.list { } /* Top of all Bl. */ /* Context-specific modes. */ -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv