mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Remove elements without height or width
This commit is contained in:
@@ -231,7 +231,7 @@ public class HtmlHelper {
|
||||
break;
|
||||
|
||||
case "display":
|
||||
if ("none".equals(value) && !display_hidden) {
|
||||
if (!display_hidden && "none".equals(value)) {
|
||||
Log.i("Removing element " + element.tagName());
|
||||
element.empty();
|
||||
}
|
||||
@@ -240,6 +240,17 @@ public class HtmlHelper {
|
||||
element.attr("inline", "true");
|
||||
|
||||
break;
|
||||
|
||||
case "height":
|
||||
case "width":
|
||||
//case "font-size":
|
||||
//case "line-height":
|
||||
if (!display_hidden &&
|
||||
("0".equals(value) || "0px".equals(value))) {
|
||||
Log.i("Removing element " + element.tagName());
|
||||
element.empty();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user