diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-02 10:08:06 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-02 10:08:06 +0000 |
commit | 110fb75482f7f2c0f483cf8b3643b20e6600a1c4 (patch) | |
tree | 39019d1d0c3ea61d852d9f5fdd3fee3b59fd9051 /mdoc_term.c | |
parent | efe93b8f37e682132d735c3ed77f4c64aedc5aef (diff) | |
download | mandoc-110fb75482f7f2c0f483cf8b3643b20e6600a1c4.tar.gz |
Fix the implementation and documentation of \c (continue text input line).
In particular, make it work in no-fill mode, too.
Reminded by Carsten dot Kunze at arcor dot de (Heirloom roff).
Diffstat (limited to 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index 4b4d12d9..e940ab9d 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1632,7 +1632,8 @@ termp_bd_pre(DECL_ARGS) default: break; } - if (nn->next && nn->next->line == nn->line) + if (p->flags & TERMP_NONEWLINE || + (nn->next && ! (nn->next->flags & MDOC_LINE))) continue; term_flushln(p); p->flags |= TERMP_NOSPACE; |