summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2009-07-18 19:00:31 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2009-07-18 19:00:31 +0000
commit5d77caa5eace2b73a60b9a60bf0d22d49dceeea3 (patch)
tree429480bcd714ebe859c3ec219042386ec1e34a52
parent87d2e37d734dbd29e93cf72725610b3fd519c962 (diff)
sync to 1.8.0: two .Vd in SYNOPSIS get a line break in between,
but not a blank line; as before, the last .Vd in SYNOPSIS is still followed by a blank line, and .Vd outside SYNOPSIS breaks no lines
-rw-r--r--usr.bin/mandoc/mdoc_term.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_term.c b/usr.bin/mandoc/mdoc_term.c
index 91dc500e529..320cf462b40 100644
--- a/usr.bin/mandoc/mdoc_term.c
+++ b/usr.bin/mandoc/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.29 2009/07/18 18:46:42 schwarze Exp $ */
+/* $Id: mdoc_term.c,v 1.30 2009/07/18 19:00:30 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -1193,7 +1193,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);
}