summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2012-07-10 15:35:41 +0000
committerIngo Schwarze <schwarze@openbsd.org>2012-07-10 15:35:41 +0000
commitb9ad3d659b9f14475c8f929576c2d0d901d89742 (patch)
tree539c22c279c0c87345ce8f31903fefbdedc73b83 /term.c
parent9f4a3d2ed291d81d20e716c9e6fa77fafbf154ce (diff)
downloadmandoc-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.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/term.c b/term.c
index c9166b54..161cdadb 100644
--- a/term.c
+++ b/term.c
@@ -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;