diff options
author | 2017-06-17 13:05:47 +0000 | |
---|---|---|
committer | 2017-06-17 13:05:47 +0000 | |
commit | 3361af3902e32d1dfffbc2c469dc7d69664a6210 (patch) | |
tree | df0c270bac6e9e377c7e8cc135b44ab89c85e5d0 /usr.bin/mandoc/man_term.c | |
parent | Pass the command to execute as an argument. Allows the edit program to be (diff) | |
download | wireguard-openbsd-3361af3902e32d1dfffbc2c469dc7d69664a6210.tar.xz wireguard-openbsd-3361af3902e32d1dfffbc2c469dc7d69664a6210.zip |
correct handling of blank lines after \c
Diffstat (limited to 'usr.bin/mandoc/man_term.c')
-rw-r--r-- | usr.bin/mandoc/man_term.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man_term.c b/usr.bin/mandoc/man_term.c index c284e3f45be..7b34366e6a0 100644 --- a/usr.bin/mandoc/man_term.c +++ b/usr.bin/mandoc/man_term.c @@ -1,4 +1,4 @@ -/* $OpenBSD: man_term.c,v 1.159 2017/06/17 01:26:48 schwarze Exp $ */ +/* $OpenBSD: man_term.c,v 1.160 2017/06/17 13:05:47 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2015, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -870,7 +870,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) |