summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2016-10-19 20:27:19 +0200
committerAnne Jan Brouwer <brouwer@annejan.com>2016-10-19 20:27:47 +0200
commitaa1ca4edccd14d16d27b042b566be634e120e2bf (patch)
treed414af2f6cf967239556c34d5cc3492db8703223
parent72dbb056f3a759fc7e24ccd628f20d294eac7c47 (diff)
Replace spaces with &nbsp; in textBrowser closes #210
-rw-r--r--mainwindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index b4e0d4f0..140fa5af 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -866,6 +866,7 @@ void MainWindow::readyRead(bool finished = false) {
}
output.replace(QRegExp("<"), "&lt;");
output.replace(QRegExp(">"), "&gt;");
+ output.replace(QRegExp(" "), "&nbsp;");
} else {
// qDebug() << process->readAllStandardOutput();
// qDebug() << process->readAllStandardError();