[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] "Cosmetic" filling
From: |
Gunnar Ritter |
Subject: |
Re: [Groff] "Cosmetic" filling |
Date: |
Sun, 03 Sep 2006 15:10:09 +0200 |
User-agent: |
Heirloom mailx 12.2pre 7/7/06 |
Werner LEMBERG <address@hidden> wrote:
> I haven't found out yet the cause of this behaviour; I invite you to
> use a debugger so that you can find the relevant spot. :-)
The problem is in environment::do_break() after the comment
"this is so that hyphenation works". A zero-length space is
added, so line->width() is zero when possibly_break_line()
gets called, and the length of a real space at the end of
the line is not subtracted from width_total anymore when
considering whether to spread the line.
Adding the zero-length space only if line->nspaces() == 0
looks like a possible fix to me.
Test input:
.ds a \ \h'-1u'
.ll \w'some\*a text and a \(br'u
some\*a text and a \(br
some text and a \(br
(The box rules should not align.)
Gunnar
- Re: [Groff] "Cosmetic" filling,
Gunnar Ritter <=