diff options
author | 2019-01-05 21:18:26 +0000 | |
---|---|---|
committer | 2019-01-05 21:18:26 +0000 | |
commit | 90df3f10ba3a29b23b62fdad06cdae3f2c051e4f (patch) | |
tree | 4dfe2636e81047195b3964f2c3328e367e6bc3b8 /man_term.c | |
parent | c33a3366a3d5db0a3182110ecfe15ded97489b77 (diff) | |
download | mandoc-90df3f10ba3a29b23b62fdad06cdae3f2c051e4f.tar.gz mandoc-90df3f10ba3a29b23b62fdad06cdae3f2c051e4f.tar.zst mandoc-90df3f10ba3a29b23b62fdad06cdae3f2c051e4f.zip |
In groff, when the .SY block macro occurs in no-fill mode,
the output line gets broken after the head. Do the same.
Diffstat (limited to 'man_term.c')
-rw-r--r-- | man_term.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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: |