diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-17 11:19:42 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-17 11:19:42 +0000 |
commit | c44fd22b542e1961166f801e2adf77adeca2b6c3 (patch) | |
tree | c7e186531cfcb1f177863d2be5f53ee7e7345497 | |
parent | 5e230b74aa5d00132cb7d86cc3a799980ea1db81 (diff) | |
download | mandoc-c44fd22b542e1961166f801e2adf77adeca2b6c3.tar.gz |
Prevent double-printing of `D1' or `Dl' DIV.
-rw-r--r-- | mdoc_html.c | 7 |
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); } |