From 845484fa807421bca24dceb98d4bf19c9f94dfd8 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 12 Sep 2018 11:55:52 +0000 Subject: [PATCH] Use block quote when replying/forwarding --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index a1ab8ffc..fe014c57 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -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

%s %s:

%s", + body = String.format("%s

%s %s:

%s
", text.replaceAll("\\r?\\n", "
"), 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("

%s %s:

%s", + body = String.format("

%s %s:

%s
", Html.escapeHtml(new Date().toString()), Html.escapeHtml(MessageHelper.getFormattedAddresses(ref.from, true)), HtmlHelper.sanitize(ref.read(context)));