summaryrefslogtreecommitdiffstats
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-12 19:28:46 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-12 19:28:46 +0000
commita2f621336638ee15b43b64a1332dd5fbea9b789d (patch)
treec3fc1abbbaf8f71c65b8f3ca143d05d635371277 /mdoc_term.c
parentebc953bff65a81b3245f42b7779361757c3a889e (diff)
downloadmandoc-a2f621336638ee15b43b64a1332dd5fbea9b789d.tar.gz
`Vt' macro behaves [more] properly when in the SYNOPSIS section.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 6da07822..106cac04 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1204,7 +1204,11 @@ static void
termp_vt_post(DECL_ARGS)
{
- if (node->sec == SEC_SYNOPSIS)
+ if (node->sec != SEC_SYNOPSIS)
+ return;
+ if (node->next && MDOC_Vt == node->next->tok)
+ term_newln(p);
+ else if (node->next)
term_vspace(p);
}