From 05c1408b281441f3ec02a7ae478be405fab9635a Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 9 May 2017 14:10:01 +0000 Subject: Trailing \c suppresses the output line break even if the next line is a text line starting with whitespace. Quirk found in the sysutils/rancid port. --- man_term.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'man_term.c') diff --git a/man_term.c b/man_term.c index 0b9c919d..3a600093 100644 --- a/man_term.c +++ b/man_term.c @@ -873,10 +873,11 @@ print_man_node(DECL_ARGS) * If we have a space as the first character, break * before printing the line's data. */ - if ('\0' == *n->string) { + if (*n->string == '\0') { term_vspace(p); return; - } else if (' ' == *n->string && NODE_LINE & n->flags) + } else if (*n->string == ' ' && n->flags & NODE_LINE && + (p->flags & TERMP_NONEWLINE) == 0) term_newln(p); term_word(p, n->string); -- cgit