From 10d8ff93badeca4aa0cdd78f26832996d7b3536c 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mdoc_term.c b/mdoc_term.c index a3226b83..e6be6214 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.141 2010/06/06 10:50:56 kristaps Exp $ */ +/* $Id: mdoc_term.c,v 1.142 2010/06/06 22:08:15 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -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 v1.2.3