diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2010-06-06 22:08:15 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2010-06-06 22:08:15 +0000 |
commit | a94d91b34afa070bb80ff959eebfb792d4fc4f35 (patch) | |
tree | 4d4fbc28b0db25d274b7f3a778b2ea2dc92256fd /mdoc_term.c | |
parent | 34fea7d9c3c00551a204d61ab425a241e7eae4cb (diff) | |
download | mandoc-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@
Diffstat (limited to 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 3 |
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"); |