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:
parent
85c8bdd067
commit
ff5c3d2666
1 changed files with 6 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue