Skip to content

layout: Try harder to not produce overlong lines

Matthias Clasen requested to merge avoid-overlong-lines into main

Our accounting for run lengths is imperfect (mainly due to log widths for clusters being evenly distributed), so it can happen that after reshaping the split item, we find that it does not actually fit in the remaining width. Previously, we would just use the split run at that point and produce an overlong line. Instead, undo the split, disable the breakpoint we used, and try again.

Merge request reports