From c44fd22b542e1961166f801e2adf77adeca2b6c3 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 17 Dec 2010 11:19:42 +0000 Subject: Prevent double-printing of `D1' or `Dl' DIV. --- mdoc_html.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'mdoc_html.c') diff --git a/mdoc_html.c b/mdoc_html.c index 16a8f64e..cc8c2994 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1064,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); } -- cgit