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); }