Previewer converts newlines to html linebreaks which results in nicer message display.
This commit is contained in:
parent
70f8ee92c2
commit
0351a988a7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue