summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2010-06-06 22:08:15 +0000
committerIngo Schwarze <schwarze@openbsd.org>2010-06-06 22:08:15 +0000
commita94d91b34afa070bb80ff959eebfb792d4fc4f35 (patch)
tree4d4fbc28b0db25d274b7f3a778b2ea2dc92256fd
parent34fea7d9c3c00551a204d61ab425a241e7eae4cb (diff)
downloadmandoc-a94d91b34afa070bb80ff959eebfb792d4fc4f35.tar.gz
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@
-rw-r--r--mdoc_term.c3
1 files changed, 3 insertions, 0 deletions
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");