Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.3.2, 5.7.0
-
15414257b3719f2c302cca26efe40f2b3caa115b
Description
There is html shown in QTextBrowser. The html contains nbsp entities and span tags to apply styles (bold/normal font). Now, when there is 'bold text, nbsp, and bold text' in the beginning of a line the first character is cut off. The text is shown correctly if the line break is anywhere else than before that bold text.
This error showed up after change https://codereview.qt-project.org/#/c/88644/4 was applied.
Also one curiosity is that the nbsp in the middle of bold text is using "normal font" (due to html layout issues), which is set with span tag. If the span tag is removed and the nbsp is bold, the problem is not reproducible.
See the attached example. The 4th line says "4.8% een havo diploma" when it should be "64.8% een havo diploma". Resize the window to see the correct text.
Tested on Windows 7 and Ubuntu 16.04.