mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 13:14:39 +00:00
Prevent white space
This commit is contained in:
parent
4d38a63a0b
commit
69729b0566
1 changed files with 11 additions and 0 deletions
|
@ -185,6 +185,17 @@ public class HtmlHelper {
|
||||||
document.select("ul").tagName("div");
|
document.select("ul").tagName("div");
|
||||||
|
|
||||||
// Tables
|
// Tables
|
||||||
|
for (Element div : document.select("div")) {
|
||||||
|
Element parent = div.parent();
|
||||||
|
while (parent != null) {
|
||||||
|
if ("td".equals(parent.tagName())) {
|
||||||
|
div.tagName("span"); // Prevent white space
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
parent = parent.parent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (Element col : document.select("th,td")) {
|
for (Element col : document.select("th,td")) {
|
||||||
// separate columns by a space
|
// separate columns by a space
|
||||||
if (col.nextElementSibling() == null) {
|
if (col.nextElementSibling() == null) {
|
||||||
|
|
Loading…
Reference in a new issue