Previewer converts newlines to html linebreaks which results in nicer message display.

This commit is contained in:
Martin Rotter 2020-08-11 11:16:17 +02:00
parent 70f8ee92c2
commit 0351a988a7
1 changed files with 4 additions and 0 deletions

View File

@ -267,6 +267,10 @@ QString MessagePreviewer::prepareHtmlForMessage(const Message& message) {
}
html += pictures_html;
html = html
.replace(QSL("\r\n"), QSL("\n"))
.replace(QL1C('\r'), QL1C('\n'))
.replace(QL1C('\n'), QSL("<br/>"));
return html;
}