X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/6b5526d085aa5baa312a328e0a7cb473bd527164..6679f3bff1fd1867c5173a3832bae2426d7c1e3a:/man_term.c diff --git a/man_term.c b/man_term.c index 62b510ad..d867762d 100644 --- a/man_term.c +++ b/man_term.c @@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.227 2019/01/05 01:29:32 schwarze Exp $ */ +/* $Id: man_term.c,v 1.228 2019/01/05 21:18:26 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2015, 2017-2019 Ingo Schwarze @@ -833,7 +833,9 @@ pre_SY(DECL_ARGS) case ROFFT_HEAD: p->tcol->offset = mt->offset; p->tcol->rmargin = mt->offset + len; - p->flags |= TERMP_NOBREAK; + if (n->next->child == NULL || + (n->next->child->flags & NODE_NOFILL) == 0) + p->flags |= TERMP_NOBREAK; term_fontrepl(p, TERMFONT_BOLD); break; case ROFFT_BODY: