|
|
@ -185,17 +185,6 @@ 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) {
|
|
|
|