1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 02:07:12 +00:00

Remove elements without height or width

This commit is contained in:
M66B 2019-11-26 09:15:33 +01:00
parent 65be3bd878
commit f2fa4800d7

View file

@ -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;
}
}
}