Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/mumble/MainWindow.cpp')
-rw-r--r--src/mumble/MainWindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mumble/MainWindow.cpp b/src/mumble/MainWindow.cpp
index 6d955c9d6..d7cb33815 100644
--- a/src/mumble/MainWindow.cpp
+++ b/src/mumble/MainWindow.cpp
@@ -1952,6 +1952,10 @@ void MainWindow::on_qaQuit_triggered() {
void MainWindow::sendChatbarText(QString qsText) {
qsText = qsText.toHtmlEscaped();
+ // Markdown::markdownToHTML also takes care of replacing line breaks (\n) with the respective
+ // HTML code <br/>. Therefore if Markdown support is ever going to be removed from this
+ // function, this job has to be done explicitly as otherwise line breaks won't be shown on
+ // the receiving end of this text message.
qsText = Markdown::markdownToHTML(qsText);
sendChatbarMessage(qsText);