diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index 853796de59..4571c11ffd 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -570,10 +570,13 @@ public class HtmlHelper { int colon = param.indexOf(':'); if (colon <= 0) continue; - String key = param.substring(0, colon).trim().toLowerCase(Locale.ROOT); - String value = param.substring(colon + 1).toLowerCase(Locale.ROOT) - .replace("!important", "") + String key = param.substring(0, colon) + .trim() + .toLowerCase(Locale.ROOT); + String value = param.substring(colon + 1) .trim() + .toLowerCase(Locale.ROOT) + .replace("!important", "") .replaceAll("\\s+", " "); kv.put(key, value); }