WeasyPrint icon indicating copy to clipboard operation
WeasyPrint copied to clipboard

Hyphenation: consider words that contain a NBSP

Open ondras opened this issue 1 year ago • 0 comments

The main goal here is to fix https://github.com/Kozea/WeasyPrint/issues/2270.

My change is simple:

  • adjust the get_next_word_boundaries function so it considers the whole word-nbsp-word cluster as a single potentially-hyphenable word,
  • ignore suggested hyphenation dictionary item(s) that end with a nbsp

Tests seem to pass. However: xVyoSl

ondras avatar Oct 07 '24 20:10 ondras