Finn Bock wrote: > I've been playing around with the knuth line breaking code and made a > slight refactoring of it. [...] > These improvements could also be applied to the existing code, so I > think the more interesting point is the quality of the refactoring > job.
I think this is a very good patch, and it could be applied as it is now: my last changes introduced a first fit algorithm used if the Knuth's one failed, but your re-starting strategy seems much better. Regards Luca