mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 09:47:13 +00:00
Remove elements without height or width
This commit is contained in:
parent
65be3bd878
commit
f2fa4800d7
1 changed files with 12 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue