From 666d5c808f19ca84c305e9c9af433dc6bf3cb050 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 15 Feb 2020 15:36:40 +0100 Subject: [PATCH] Support for rem font sizes --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index 03dd95d8aa..41117253bc 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -775,7 +775,10 @@ public class HtmlHelper { if (TextUtils.isEmpty(value)) return null; - value = value.toLowerCase(Locale.ROOT).trim(); + value = value + .toLowerCase(Locale.ROOT) + .trim() + .replace("rem", "em"); try { if (value.endsWith("em"))