Set default font only when text

This commit is contained in:
M66B
2020-08-11 19:21:57 +02:00
parent 23f8dc637b
commit c771bcaed5

View File

@@ -563,7 +563,8 @@ public class MessageHelper {
if (send) {
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(
"font-family:" + compose_font, child.attr("style"));
child.attr("style", style);