From 2fa768dd3258ecc39730b020f47e705a97c74d79 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 17 Jun 2017 13:06:16 +0000 Subject: correct handling of blank lines after \c --- man_term.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'man_term.c') diff --git a/man_term.c b/man_term.c index 781244d1..44b25d34 100644 --- a/man_term.c +++ b/man_term.c @@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.206 2017/06/17 01:27:05 schwarze Exp $ */ +/* $Id: man_term.c,v 1.207 2017/06/17 13:06:16 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2015, 2017 Ingo Schwarze @@ -872,7 +872,10 @@ print_man_node(DECL_ARGS) * before printing the line's data. */ if (*n->string == '\0') { - term_vspace(p); + if (p->flags & TERMP_NONEWLINE) + term_newln(p); + else + term_vspace(p); return; } else if (*n->string == ' ' && n->flags & NODE_LINE && (p->flags & TERMP_NONEWLINE) == 0) -- cgit v1.2.3-56-ge451