mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 11:01:23 +01:00
Preserve plain text spaces
This commit is contained in:
@@ -862,11 +862,8 @@ public class MessageHelper {
|
||||
// Prevent Jsoup throwing an exception
|
||||
result = result.replace("\0", "");
|
||||
|
||||
if (part.isMimeType("text/plain")) {
|
||||
result = TextUtils.htmlEncode(result);
|
||||
result = result.replaceAll("\\r?\\n", "<br>");
|
||||
result = "<span>" + result + "</span>";
|
||||
}
|
||||
if (part.isMimeType("text/plain"))
|
||||
result = "<pre>" + TextUtils.htmlEncode(result) + "</pre>";
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user