aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-08-18 14:02:56 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-08-18 14:02:56 +0000
commit4fe082dae51b8658b571fd06b8f39737874a7eaa (patch)
tree5356bd091ed6408cad66b9baa720684d30708d1e /man_term.c
parentd3d990363ef8cf81504d34b68574c158e1ca951e (diff)
downloadmandoc-4fe082dae51b8658b571fd06b8f39737874a7eaa.tar.gz
mandoc-4fe082dae51b8658b571fd06b8f39737874a7eaa.tar.zst
mandoc-4fe082dae51b8658b571fd06b8f39737874a7eaa.zip
Two consecutive .SY blocks only get a blank line in between
if the first one is explicitly closed with .YS.
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/man_term.c b/man_term.c
index 64661564..8ab3c423 100644
--- a/man_term.c
+++ b/man_term.c
@@ -1,4 +1,4 @@
-/* $Id: man_term.c,v 1.216 2018/08/18 13:05:10 schwarze Exp $ */
+/* $Id: man_term.c,v 1.217 2018/08/18 14:02:56 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -861,7 +861,8 @@ pre_SY(DECL_ARGS)
switch (n->type) {
case ROFFT_BLOCK:
- print_bvspace(p, n, mt->pardist);
+ if (n->prev == NULL || n->prev->tok != MAN_SY)
+ print_bvspace(p, n, mt->pardist);
return 1;
case ROFFT_HEAD:
case ROFFT_BODY: