mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 01:23:38 +02:00
Normalize html line breaks
This commit is contained in:
@@ -612,7 +612,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
|
||||
String ref = Helper.readText(refFile);
|
||||
String plain = HtmlHelper.getText(ref);
|
||||
String html = "<p>" + plain.replaceAll("\\r?\\n", "<br />") + "</p>";
|
||||
String html = "<p>" + plain.replaceAll("\\r?\\n", "<br>") + "</p>";
|
||||
|
||||
try (BufferedWriter out = new BufferedWriter(new FileWriter(file))) {
|
||||
out.write(body);
|
||||
@@ -2041,7 +2041,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
|
||||
draft.subject = args.getString("subject", "");
|
||||
body = args.getString("body", "");
|
||||
body = body.replaceAll("\\r?\\n", "<br />");
|
||||
body = body.replaceAll("\\r?\\n", "<br>");
|
||||
|
||||
if (answer > 0) {
|
||||
EntityAnswer a = db.answer().getAnswer(answer);
|
||||
|
||||
Reference in New Issue
Block a user