text is cut off after some lines with the QTextEdit/Browser !873 (cherry picked from commit 33b11fb2)