WeasyPrint
WeasyPrint copied to clipboard
Hyphenation: consider words that contain a NBSP
The main goal here is to fix https://github.com/Kozea/WeasyPrint/issues/2270.
My change is simple:
- adjust the
get_next_word_boundariesfunction 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: