Allow selecting no send font

This commit is contained in:
M66B
2021-10-06 07:48:03 +02:00
parent 5364c539eb
commit 02d0e1b28c
2 changed files with 13 additions and 11 deletions

View File

@@ -704,15 +704,16 @@ public class MessageHelper {
if (auto_link)
HtmlHelper.autoLink(document);
for (Element child : document.body().children())
if (!TextUtils.isEmpty(child.text()) &&
TextUtils.isEmpty(child.attr("fairemail"))) {
String old = child.attr("style");
String style = HtmlHelper.mergeStyles(
"font-family:" + compose_font, old);
if (!old.equals(style))
child.attr("style", style);
}
if (!TextUtils.isEmpty(compose_font))
for (Element child : document.body().children())
if (!TextUtils.isEmpty(child.text()) &&
TextUtils.isEmpty(child.attr("fairemail"))) {
String old = child.attr("style");
String style = HtmlHelper.mergeStyles(
"font-family:" + compose_font, old);
if (!old.equals(style))
child.attr("style", style);
}
document.select("div[fairemail=signature]").removeAttr("fairemail");
document.select("div[fairemail=reference]").removeAttr("fairemail");