Bug 37828 showed me some deficiencies in the current column balancing approach. It definitely needs some work. So far, I tried to solve it by supplying a special computeDemerits() method. But currently it only looks at the KnuthNode being passed in. That's probably not good enough.
Does anybody have any good ideas on how to do this with a better approach? Jeremias Maerki