From 0d7d22d32950c90e48005ba8e864e320f5faeb18 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 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mdoc_html.c b/mdoc_html.c index be680be2..e95cd4ac 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.128 2010/12/17 11:01:24 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.129 2010/12/17 11:19:42 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * @@ -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 v1.2.3