From a94d91b34afa070bb80ff959eebfb792d4fc4f35 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 6 Jun 2010 22:08:15 +0000 Subject: Merge a fix to avoid a regression in OpenBSD: Restore the blank line before .In in SYNOPSIS except right after .Sh or right after another .In. Even though Kristaps says SYNOPSIS blank-line handling is still very much work in progress and more is probably needed, this one is useful to keep in sync with OpenBSD. "fine" kristaps@ --- mdoc_term.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mdoc_term.c b/mdoc_term.c index 9c6cce7b..e62d7219 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1845,6 +1845,9 @@ static int termp_in_pre(DECL_ARGS) { + if (SEC_SYNOPSIS == n->sec && n->prev && MDOC_In != n->prev->tok) + term_vspace(p); + if (SEC_SYNOPSIS == n->sec && MDOC_LINE & n->flags) { term_fontpush(p, TERMFONT_BOLD); term_word(p, "#include"); -- cgit