Skip to content
  • Matthias Clasen's avatar
    Fix line-break accounting more · 3a566950
    Matthias Clasen authored
    When looking for breakpoints, we were assuming that
    there is no point to keep looking forward once we
    hit a spot where the broken off part is too long.
    
    But with hyphen insertion, that is no longer true,
    necessarily. Consider 'bli '. Breaking after 'bl'
    will insert 'bl-', which might be longer than
    'bli', which is what will be inserted when we
    break after the i.
    
    To fix this, keep looking for breakpoints as long
    as there is still a chance to find one.
    3a566950