Fixed bug with space collapsing in displayTextForFreq

This commit is contained in:
Jordan Sherer 2018-11-05 16:51:24 -05:00
parent 367966f5e6
commit 5addf8f61f

View File

@ -1503,6 +1503,7 @@ void MainWindow::initializeDummyData(){
displayTextForFreq("KN4CRD: @ALLCALL? \u2301 ", 42, DriftingDateTime::currentDateTimeUtc().addSecs(-315), true, true, true);
displayTextForFreq("J1Y: KN4CRD SNR -05 \u2301 ", 42, DriftingDateTime::currentDateTimeUtc().addSecs(-300), false, true, true);
displayTextForFreq("HELLO BRAVE NEW WORLD \u2301 ", 42, DriftingDateTime::currentDateTimeUtc().addSecs(-300), false, true, true);
displayActivity(true);
@ -5169,6 +5170,7 @@ int MainWindow::writeMessageTextToUI(QDateTime date, QString text, int freq, boo
c.insertText(text);
} else {
text = text.toHtmlEscaped();
text = text.replace(" ", " ");
if(bold){
text = QString("<strong>%1</strong>").arg(text);
}