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 /man_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 'man_term.c')
-rw-r--r-- | man_term.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1018,13 +1018,14 @@ out: * -man doesn't have nested macros, we don't need to be * more specific than this. */ - if (MANT_LITERAL & mt->fl && ! (TERMP_NOBREAK & p->flags) && - (NULL == n->next || MAN_LINE & n->next->flags)) { + if (mt->fl & MANT_LITERAL && + ! (p->flags & (TERMP_NOBREAK | TERMP_NONEWLINE)) && + (n->next == NULL || n->next->flags & MAN_LINE)) { rm = p->rmargin; rmax = p->maxrmargin; p->rmargin = p->maxrmargin = TERM_MAXMARGIN; p->flags |= TERMP_NOSPACE; - if (NULL != n->string && '\0' != *n->string) + if (n->string != NULL && *n->string != '\0') term_flushln(p); else term_newln(p); |