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

Process display inline

This commit is contained in:
M66B 2019-11-11 10:47:06 +01:00
parent 85c8bdd067
commit ff5c3d2666

View file

@ -230,6 +230,10 @@ public class HtmlHelper {
Log.i("Removing element " + element.tagName());
element.empty();
}
if ("inline".equals(value) || "inline-block".equals(value))
element.attr("inline", "true");
break;
}
}
@ -472,7 +476,8 @@ public class HtmlHelper {
// Selective new lines
for (Element div : document.select("div"))
if (div.children().select("div").size() == 0 &&
if (!Boolean.parseBoolean(div.attr("inline")) &&
div.children().select("div").size() == 0 &&
hasVisibleContent(div.childNodes())) {
div.appendElement("br");
div.appendElement("br");