diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-17 13:06:16 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-17 13:06:16 +0000 |
commit | 2fa768dd3258ecc39730b020f47e705a97c74d79 (patch) | |
tree | fc8959d9b49eeade80a7f7450bf11cffa45c796d /man_term.c | |
parent | 936ee863554c8349abc92544d5db2de95d83f48b (diff) | |
download | mandoc-2fa768dd3258ecc39730b020f47e705a97c74d79.tar.gz mandoc-2fa768dd3258ecc39730b020f47e705a97c74d79.tar.zst mandoc-2fa768dd3258ecc39730b020f47e705a97c74d79.zip |
correct handling of blank lines after \c
Diffstat (limited to 'man_term.c')
-rw-r--r-- | man_term.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 <kristaps@bsd.lv> * Copyright (c) 2010-2015, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -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) |