From: schwarze Date: Sat, 18 Aug 2018 13:04:48 +0000 (+0000) Subject: prevent line breaks in the middle of .OP X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=dfff190da06a21d783db7d0c0fe75d99114076bf;p=openbsd prevent line breaks in the middle of .OP --- 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 * Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze @@ -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;