From 143a2f091f9fbea36a85c2eea9b53b8ad578d4d6 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Tue, 7 Aug 2018 12:50:31 -0400 Subject: [PATCH] move display logic to gui --- GUI/mainwindow.cpp | 1 + host/textthread.cc | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI/mainwindow.cpp b/GUI/mainwindow.cpp index 2ddd33c..459c7d8 100644 --- a/GUI/mainwindow.cpp +++ b/GUI/mainwindow.cpp @@ -112,6 +112,7 @@ void MainWindow::AddThread(TextThread* thread) thread->RegisterOutputCallBack([&](TextThread* thread, std::wstring output) { output = DispatchSentenceToExtensions(output, GetInfoForExtensions(thread)); + output += L"\r\n"; emit ThreadOutputReceived(thread, QString::fromWCharArray(output.c_str())); return output; }); diff --git a/host/textthread.cc b/host/textthread.cc index 85c36ff..e98a3de 100644 --- a/host/textthread.cc +++ b/host/textthread.cc @@ -72,7 +72,6 @@ void TextThread::AddSentence() void TextThread::AddSentence(std::wstring sentence) { TT_LOCK; - sentence.append(L"\r\n"); if (output) sentence = output(this, sentence); storage.append(sentence); }