diff options
author | 2018-08-18 13:04:48 +0000 | |
---|---|---|
committer | 2018-08-18 13:04:48 +0000 | |
commit | dfff190da06a21d783db7d0c0fe75d99114076bf (patch) | |
tree | f0e716169e12a623344636fa21346c8bf80da7b2 /usr.bin/mandoc/man_term.c | |
parent | Make sure we don't match (and attach) more than the maximum number of (diff) | |
download | wireguard-openbsd-dfff190da06a21d783db7d0c0fe75d99114076bf.tar.xz wireguard-openbsd-dfff190da06a21d783db7d0c0fe75d99114076bf.zip |
prevent line breaks in the middle of .OP
Diffstat (limited to 'usr.bin/mandoc/man_term.c')
-rw-r--r-- | usr.bin/mandoc/man_term.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man_term.c b/usr.bin/mandoc/man_term.c index bdcd51af32c..5cc04456b70 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.168 2018/08/18 02:03:41 schwarze Exp $ */ +/* $OpenBSD: man_term.c,v 1.169 2018/08/18 13:04:48 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org> @@ -344,7 +344,7 @@ pre_OP(DECL_ARGS) { term_word(p, "["); - p->flags |= TERMP_NOSPACE; + p->flags |= TERMP_KEEP | TERMP_NOSPACE; if (NULL != (n = n->child)) { term_fontrepl(p, TERMFONT_BOLD); @@ -356,6 +356,7 @@ pre_OP(DECL_ARGS) } term_fontrepl(p, TERMFONT_NONE); + p->flags &= ~TERMP_KEEP; p->flags |= TERMP_NOSPACE; term_word(p, "]"); return 0; |