mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-08 01:53:25 +02:00
Consider monospace font as plain text
This commit is contained in:
@@ -894,6 +894,12 @@ public class HtmlHelper {
|
||||
if (!text_font)
|
||||
continue;
|
||||
|
||||
if (!TextUtils.isEmpty(value)) {
|
||||
List<String> faces = StyleHelper.getTypeFaces(value);
|
||||
if (faces.contains("monospace"))
|
||||
element.attr("x-plain", "true");
|
||||
}
|
||||
|
||||
// https://developer.mozilla.org/en-US/docs/Web/CSS/font-family
|
||||
sb.append(key).append(":").append(value).append(";");
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user