diff options
author | 2018-08-18 14:02:52 +0000 | |
---|---|---|
committer | 2018-08-18 14:02:52 +0000 | |
commit | 08d1df327e3568d9df322eda03446e633bd304f1 (patch) | |
tree | ab7904810b619553efdb7c05db9ea1cc7866c486 /usr.bin/mandoc/man_term.c | |
parent | prevent line breaks in the middle of .OP (diff) | |
download | wireguard-openbsd-08d1df327e3568d9df322eda03446e633bd304f1.tar.xz wireguard-openbsd-08d1df327e3568d9df322eda03446e633bd304f1.zip |
Two consecutive .SY blocks only get a blank line in between
if the first one is explicitly closed with .YS.
Diffstat (limited to 'usr.bin/mandoc/man_term.c')
-rw-r--r-- | usr.bin/mandoc/man_term.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man_term.c b/usr.bin/mandoc/man_term.c index 5cc04456b70..b7b806e393a 100644 --- a/usr.bin/mandoc/man_term.c +++ b/usr.bin/mandoc/man_term.c @@ -1,4 +1,4 @@ -/* $OpenBSD: man_term.c,v 1.169 2018/08/18 13:04:48 schwarze Exp $ */ +/* $OpenBSD: man_term.c,v 1.170 2018/08/18 14:02:52 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org> @@ -859,7 +859,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: |