diff options
author | 2019-01-05 21:13:55 +0000 | |
---|---|---|
committer | 2019-01-05 21:13:55 +0000 | |
commit | 1e7e4b6235d1c5addd4494f6dda4213732ddf7a8 (patch) | |
tree | 049518d027e89077c567d58686cad203dd9bfb44 /usr.bin/mandoc/man_term.c | |
parent | Slowly start doing more HTML output tests, in this case for the (diff) | |
download | wireguard-openbsd-1e7e4b6235d1c5addd4494f6dda4213732ddf7a8.tar.xz wireguard-openbsd-1e7e4b6235d1c5addd4494f6dda4213732ddf7a8.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 'usr.bin/mandoc/man_term.c')
-rw-r--r-- | usr.bin/mandoc/man_term.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man_term.c b/usr.bin/mandoc/man_term.c index 2f1edfd99bb..d3afbf858a4 100644 --- a/usr.bin/mandoc/man_term.c +++ b/usr.bin/mandoc/man_term.c @@ -1,4 +1,4 @@ -/* $OpenBSD: man_term.c,v 1.180 2019/01/05 01:29:21 schwarze Exp $ */ +/* $OpenBSD: man_term.c,v 1.181 2019/01/05 21:13:55 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2015, 2017-2019 Ingo Schwarze <schwarze@openbsd.org> @@ -831,7 +831,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: |