]> git.cameronkatri.com Git - mandoc.git/blobdiff - man_term.c
while $() is more modern than ``, it does not work with the
[mandoc.git] / man_term.c
index 62b510ad766bcd6e62524e66570277605f022f18..d867762dcace1e6c123c215fd62c26ea062a5319 100644 (file)
@@ -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 <kristaps@bsd.lv>
  * Copyright (c) 2010-2015, 2017-2019 Ingo Schwarze <schwarze@openbsd.org>
@@ -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: