summaryrefslogtreecommitdiffstats
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
commit8a2246d97a01be2284b1f72fedf00c3e09f0db54 (patch)
tree21b30d81a1ed4fa577dc2f810ae04cb948ba6d10 /man_term.c
parent192195d04a6561489b2a7994ba82a517daa265b5 (diff)
downloadmandoc-8a2246d97a01be2284b1f72fedf00c3e09f0db54.tar.gz
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/man_term.c b/man_term.c
index 231c0445..96728a3c 100644
--- a/man_term.c
+++ b/man_term.c
@@ -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: