From d3d990363ef8cf81504d34b68574c158e1ca951e Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 18 Aug 2018 13:05:10 +0000 Subject: [PATCH] prevent line breaks in the middle of .OP --- man_term.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/man_term.c b/man_term.c index 12314d59..64661564 100644 --- a/man_term.c +++ b/man_term.c @@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.215 2018/08/18 02:08:27 schwarze Exp $ */ +/* $Id: man_term.c,v 1.216 2018/08/18 13:05:10 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze @@ -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; -- 2.47.1