mirror of https://github.com/M66B/FairEmail.git
Fixed formatting of text only columns
This commit is contained in:
parent
cbdb089477
commit
648bb0b509
|
@ -209,10 +209,16 @@ public class HtmlHelper {
|
|||
// Tables
|
||||
for (Element col : document.select("th,td")) {
|
||||
boolean content = false;
|
||||
for (Element e : col.children())
|
||||
if (!e.isBlock() && hasContent(e)) {
|
||||
for (Node node : col.childNodes())
|
||||
if (node instanceof TextNode) {
|
||||
content = true;
|
||||
break;
|
||||
} else if (node instanceof Element) {
|
||||
Element element = (Element) node;
|
||||
if (!element.isBlock() && hasContent(element)) {
|
||||
content = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// separate columns
|
||||
|
|
Loading…
Reference in New Issue