diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2011-09-21 09:57:13 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2011-09-21 09:57:13 +0000 |
commit | ab90ef69edb0f646ba1ee587c9f10a3f47bea419 (patch) | |
tree | 3a649e2667a3b6358702fdbc25b28dda667adbb5 /man_term.c | |
parent | 70987265bc502c45e27be707bfa9a2e5f5981e31 (diff) | |
download | mandoc-ab90ef69edb0f646ba1ee587c9f10a3f47bea419.tar.gz |
As noticed by kristaps@, when breaking an overflowing line,
forget about pending whitespace (vbl), or the next line would
be misaligned and potentially too long; but i'm fixing this
in a simpler way than he proposed.
Also remove the kludges in .HP that compensated for this bug.
Diffstat (limited to 'man_term.c')
-rw-r--r-- | man_term.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -251,7 +251,7 @@ pre_literal(DECL_ARGS) * indentation has to be set up explicitly. */ if (MAN_HP == n->parent->tok && p->rmargin < p->maxrmargin) { - p->offset = p->rmargin + 1; + p->offset = p->rmargin; p->rmargin = p->maxrmargin; p->flags &= ~(TERMP_NOBREAK | TERMP_TWOSPACE); p->flags |= TERMP_NOSPACE; @@ -469,9 +469,7 @@ pre_HP(DECL_ARGS) len = (size_t)ival; one = term_len(p, 1); - if (len > one) - len -= one; - else + if (len < one) len = one; p->offset = mt->offset; |