* mdocml: Remove a hack that was intended for groff-1.15 bug
@ 2012-07-10 15:35 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2012-07-10 15:35 UTC (permalink / raw)
To: source
Log Message:
-----------
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
Modified Files:
--------------
mdocml:
term.c
Revision Data
-------------
Index: term.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/term.c,v
retrieving revision 1.203
retrieving revision 1.204
diff -Lterm.c -Lterm.c -u -p -r1.203 -r1.204
--- term.c
+++ 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;
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-07-10 15:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-10 15:35 mdocml: Remove a hack that was intended for groff-1.15 bug schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).