mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 22:56:33 +02:00
Restore important element styles
This commit is contained in:
@@ -1904,9 +1904,12 @@ public class HtmlHelper {
|
||||
baseParams.remove(key);
|
||||
}
|
||||
|
||||
for (String key : baseParams.keySet())
|
||||
if (!STYLE_NO_INHERIT.contains(key) || element)
|
||||
for (String key : baseParams.keySet()) {
|
||||
String value = baseParams.get(key);
|
||||
boolean important = (value != null && value.contains("!important"));
|
||||
if (!STYLE_NO_INHERIT.contains(key) || element || important)
|
||||
result.put(key, baseParams.get(key));
|
||||
}
|
||||
|
||||
return TextUtils.join(";", result.values());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user