Set default font only when text

pull/184/head
M66B 4 years ago
parent 23f8dc637b
commit c771bcaed5

@ -563,7 +563,8 @@ public class MessageHelper {
if (send) { if (send) {
for (Element child : document.body().children()) for (Element child : document.body().children())
if (TextUtils.isEmpty(child.attr("fairemail"))) { if (!TextUtils.isEmpty(child.text()) &&
TextUtils.isEmpty(child.attr("fairemail"))) {
String style = HtmlHelper.mergeStyles( String style = HtmlHelper.mergeStyles(
"font-family:" + compose_font, child.attr("style")); "font-family:" + compose_font, child.attr("style"));
child.attr("style", style); child.attr("style", style);

Loading…
Cancel
Save