diff options
Diffstat (limited to 'UI')
-rw-r--r-- | UI/Qt/QtChatView.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/UI/Qt/QtChatView.cpp b/UI/Qt/QtChatView.cpp index cdf0f4e..ab093db 100644 --- a/UI/Qt/QtChatView.cpp +++ b/UI/Qt/QtChatView.cpp @@ -46,6 +46,7 @@ void QtChatView::addMessage(const ChatSnippet& snippet) { content.replace("\\", "\\\\"); content.replace("\"", "\\\""); content.replace("\n", "\\n"); + content.replace("\r", ""); if (previousContinuationElementID_.isEmpty() || !snippet.getAppendToPrevious()) { webPage_->mainFrame()->evaluateJavaScript("appendMessage(\"" + content + "\");"); } |