diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-07-10 15:33:42 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-07-10 15:33:42 +0000 |
commit | 7e00892f038fa750df84ecb162f9d71bb4a29f56 (patch) | |
tree | 4b578764a16f7445fe9be16238650f20eae241bd /usr.bin | |
parent | 85782adf0cfaba05570213ea8545c3418b49fc62 (diff) |
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.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mandoc/term.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/usr.bin/mandoc/term.c b/usr.bin/mandoc/term.c index a30c2440d39..43d33868b43 100644 --- a/usr.bin/mandoc/term.c +++ b/usr.bin/mandoc/term.c @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.64 2012/05/28 13:00:51 schwarze Exp $ */ +/* $Id: term.c,v 1.65 2012/07/10 15:33:40 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2011, 2012 Ingo Schwarze <schwarze@openbsd.org> @@ -261,16 +261,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; |