Words are being wrapped mid-word

I’m inserting HTML text using builder.InsertHtml(html, true);
My problem is that words are being wrapped mid-word.

Example HTML:

<ul><li>Einstellung&nbsp;von&nbsp;Transportkette,&nbsp;Kettenrad,&nbsp;Einzugsanschlag&nbsp;und&nbsp;Druckbrücke&nbsp;(Vorspannung,&nbsp;Parallelität,&nbsp;Ausrichtung)&nbsp;</li><li>Prüfung&nbsp;und&nbsp;Einstellung&nbsp;von&nbsp;Tastwegen&nbsp;und&nbsp;Vorspannungen&nbsp;sämtlicher&nbsp;Bearbeitungsaggregate</li></ul><p></p>

The words “Vorspannung” and “Bearbeitungsaggregate” are broken to a new line mid-word without a separator.

@Niebelschuetz The behavior is expected because all spaces in your HTML are non-breaking spaces. Use normal spaces to resolve the problem.

Thanks for the tip. I replaced the non-breaking spaces with regular ones. It works now.

1 Like