=================================================================== RCS file: /cvs/mandoc/mdoc_term.c,v retrieving revision 1.138 retrieving revision 1.139 diff -u -p -r1.138 -r1.139 --- mandoc/mdoc_term.c 2010/06/04 21:49:39 1.138 +++ mandoc/mdoc_term.c 2010/06/04 22:16:27 1.139 @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.138 2010/06/04 21:49:39 kristaps Exp $ */ +/* $Id: mdoc_term.c,v 1.139 2010/06/04 22:16:27 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -1536,6 +1536,12 @@ termp_fn_pre(DECL_ARGS) { const struct mdoc_node *nn; + /* NB: MDOC_LINE has no effect on this macro! */ + if (SEC_SYNOPSIS == n->sec) { + if (n->prev) + term_vspace(p); + } + term_fontpush(p, TERMFONT_BOLD); term_word(p, n->child->string); term_fontpop(p); @@ -1566,8 +1572,9 @@ static void termp_fn_post(DECL_ARGS) { - if (n->sec == SEC_SYNOPSIS && n->next && MDOC_LINE & n->flags) - term_vspace(p); + /* NB: MDOC_LINE has no effect on this macro! */ + if (SEC_SYNOPSIS == n->sec) + term_newln(p); }