summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-17 11:19:42 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-17 11:19:42 +0000
commitc44fd22b542e1961166f801e2adf77adeca2b6c3 (patch)
treec7e186531cfcb1f177863d2be5f53ee7e7345497
parent5e230b74aa5d00132cb7d86cc3a799980ea1db81 (diff)
downloadmandoc-c44fd22b542e1961166f801e2adf77adeca2b6c3.tar.gz
Prevent double-printing of `D1' or `Dl' DIV.
-rw-r--r--mdoc_html.c7
1 files changed, 3 insertions, 4 deletions
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);
}