summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-01-30 08:42:20 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-01-30 08:42:20 +0000
commit544544185bcee3b5efb8ee4ccd6c444ea8fef690 (patch)
tree08cf8012b075ef18f97cccc9904280cf451a2b9f /mdoc_html.c
parent69596003d5d304964e0f7f88ac7d957b18ecf9ca (diff)
downloadmandoc-544544185bcee3b5efb8ee4ccd6c444ea8fef690.tar.gz
Fix in handling Vt in SYNOPSIS with trailing punctuation. Spotted by Joerg Sonnenberger.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 86e8b800..9305b508 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1583,7 +1583,7 @@ mdoc_vt_pre(MDOC_ARGS)
struct htmlpair tag;
struct roffsu su;
- if (SEC_SYNOPSIS == n->sec) {
+ if (MDOC_BLOCK == n->type) {
if (n->prev && MDOC_Vt != n->prev->tok) {
SCALE_VS_INIT(&su, 1);
bufcat_su(h, "margin-top", &su);
@@ -1591,7 +1591,10 @@ mdoc_vt_pre(MDOC_ARGS)
print_otag(h, TAG_DIV, 1, &tag);
} else
print_otag(h, TAG_DIV, 0, NULL);
- }
+
+ return(1);
+ } else if (MDOC_HEAD == n->type)
+ return(0);
PAIR_CLASS_INIT(&tag, "type");
print_otag(h, TAG_SPAN, 1, &tag);