Fixed word wrapping with no break spaces

This commit is contained in:
Jordan Sherer 2018-11-05 21:13:16 -05:00
parent 5addf8f61f
commit 1d11f0f8ba

View File

@ -5170,7 +5170,8 @@ int MainWindow::writeMessageTextToUI(QDateTime date, QString text, int freq, boo
c.insertText(text);
} else {
text = text.toHtmlEscaped();
text = text.replace(" ", " ");
text = text.replace(" ", "   ");
text = text.replace(" ", "  ");
if(bold){
text = QString("<strong>%1</strong>").arg(text);
}