mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-23 16:25:30 +00:00
Cleanup
This commit is contained in:
parent
b36e98a457
commit
3247d20c14
1 changed files with 2 additions and 5 deletions
|
@ -508,11 +508,7 @@ public class HtmlHelper {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove new lines without surrounding content
|
// Remove trailing br from div
|
||||||
//for (Element br : document.select("br"))
|
|
||||||
// if (br.parent() != null && !hasVisibleContent(br.parent().childNodes()))
|
|
||||||
// br.tagName("span");
|
|
||||||
|
|
||||||
for (Element div : document.select("div"))
|
for (Element div : document.select("div"))
|
||||||
if (div.children().select("div").size() == 0 &&
|
if (div.children().select("div").size() == 0 &&
|
||||||
hasVisibleContent(div.childNodes())) {
|
hasVisibleContent(div.childNodes())) {
|
||||||
|
@ -521,6 +517,7 @@ public class HtmlHelper {
|
||||||
last.remove();
|
last.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Replace headings
|
||||||
if (!text_size)
|
if (!text_size)
|
||||||
for (Element h : document.select("h1,h2,h3,h4,h5,h6")) {
|
for (Element h : document.select("h1,h2,h3,h4,h5,h6")) {
|
||||||
h.appendElement("br");
|
h.appendElement("br");
|
||||||
|
|
Loading…
Reference in a new issue