summaryrefslogtreecommitdiffstats
path: root/man_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-08-18 13:05:10 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-08-18 13:05:10 +0000
commit192195d04a6561489b2a7994ba82a517daa265b5 (patch)
tree20f4f9e101fbd8b750bfb6fef0f6e61ee55090d1 /man_term.c
parent0a1453538dc5569c45c1175c34d5a29235c58555 (diff)
downloadmandoc-192195d04a6561489b2a7994ba82a517daa265b5.tar.gz
prevent line breaks in the middle of .OP
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/man_term.c b/man_term.c
index 58e86bfc..231c0445 100644
--- a/man_term.c
+++ b/man_term.c
@@ -346,7 +346,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);
@@ -358,6 +358,7 @@ pre_OP(DECL_ARGS)
}
term_fontrepl(p, TERMFONT_NONE);
+ p->flags &= ~TERMP_KEEP;
p->flags |= TERMP_NOSPACE;
term_word(p, "]");
return 0;