diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2012-07-10 15:35:41 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2012-07-10 15:35:41 +0000 |
commit | b9ad3d659b9f14475c8f929576c2d0d901d89742 (patch) | |
tree | 539c22c279c0c87345ce8f31903fefbdedc73b83 /term.c | |
parent | 9f4a3d2ed291d81d20e716c9e6fa77fafbf154ce (diff) | |
download | mandoc-b9ad3d659b9f14475c8f929576c2d0d901d89742.tar.gz |
Remove a hack that was intended for groff-1.15 bug compatibility:
When the width of a tag in .Bl -hang was exactly one character
shorter than the maximum length that would fit, the following text
would have a negative hang of one character (i.e., hang to the left).
That bug is no longer present in groff-1.21, so relax mandoc, too.
OpenBSD rev. 1.65
Diffstat (limited to 'term.c')
-rw-r--r-- | term.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -265,16 +265,11 @@ term_flushln(struct termp *p) p->overstep = (int)(vis - maxvis + (*p->width)(p, ' ')); /* - * Behave exactly the same way as groff: * If we have overstepped the margin, temporarily move * it to the right and flag the rest of the line to be * shorter. - * If we landed right at the margin, be happy. - * If we are one step before the margin, temporarily - * move it one step LEFT and flag the rest of the line - * to be longer. */ - if (p->overstep < -1) + if (p->overstep < 0) p->overstep = 0; return; |