diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/consolewindow.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/consolewindow.cpp b/gui/consolewindow.cpp index 628c5f00..5cd332c4 100644 --- a/gui/consolewindow.cpp +++ b/gui/consolewindow.cpp @@ -36,6 +36,11 @@ void ConsoleWindow::write(QString data, MessageLevel::Enum mode) if (data.endsWith('\n')) data = data.left(data.length()-1); QStringList paragraphs = data.split('\n'); + for(QString ¶graph : paragraphs) + { + paragraph = paragraph.trimmed(); + } + QListIterator<QString> iter(paragraphs); if (mode == MessageLevel::MultiMC) while(iter.hasNext()) |