=================================================================== RCS file: /cvs/mandoc/mdoc_html.c,v retrieving revision 1.127 retrieving revision 1.129 diff -u -p -r1.127 -r1.129 --- mandoc/mdoc_html.c 2010/12/17 10:43:51 1.127 +++ mandoc/mdoc_html.c 2010/12/17 11:19:42 1.129 @@ -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.129 2010/12/17 11:19:42 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * @@ -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. */ @@ -1061,13 +1064,12 @@ mdoc_d1_pre(MDOC_ARGS) /* BLOCKQUOTE needs a block body. */ - if (MDOC_Dl == n->tok) { + if (MDOC_Dl == n->tok) PAIR_CLASS_INIT(&tag[0], "lit display"); - print_otag(h, TAG_DIV, 1, tag); - } else + else PAIR_CLASS_INIT(&tag[0], "display"); - print_otag(h, TAG_DIV, 1, tag); + print_otag(h, TAG_DIV, 1, tag); return(1); }