Use block quote when replying/forwarding

This commit is contained in:
M66B
2018-09-12 11:55:52 +00:00
parent 5ac769af01
commit 845484fa80

View File

@@ -821,14 +821,14 @@ public class FragmentCompose extends FragmentEx {
text = text.replace("$name$", name == null ? "" : name);
}
draft.subject = context.getString(R.string.title_subject_reply, ref.subject);
body = String.format("%s<br><br>%s %s:<br><br>%s",
body = String.format("%s<br><br>%s %s:<br><br><blockquote>%s</blockquote>",
text.replaceAll("\\r?\\n", "<br />"),
Html.escapeHtml(new Date().toString()),
Html.escapeHtml(MessageHelper.getFormattedAddresses(draft.to, true)),
HtmlHelper.sanitize(ref.read(context)));
} else if ("forward".equals(action)) {
draft.subject = context.getString(R.string.title_subject_forward, ref.subject);
body = String.format("<br><br>%s %s:<br><br>%s",
body = String.format("<br><br>%s %s:<br><br><blockquote>%s</blockquote>",
Html.escapeHtml(new Date().toString()),
Html.escapeHtml(MessageHelper.getFormattedAddresses(ref.from, true)),
HtmlHelper.sanitize(ref.read(context)));