Browse Source

Use block quote when replying/forwarding

main
M66B 6 years ago
parent
commit
845484fa80
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/src/main/java/eu/faircode/email/FragmentCompose.java

+ 2
- 2
app/src/main/java/eu/faircode/email/FragmentCompose.java 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)));


Loading…
Cancel
Save