Less line breaking

pull/167/head
M66B 5 years ago
parent 782394d655
commit db7608a833

@ -247,13 +247,15 @@ public class HtmlHelper {
}
// Remove new lines without surrounding content
for (Element br : document.select("br"))
if (br.parent() != null && !hasVisibleContent(br.parent().childNodes()))
br.tagName("span");
//for (Element br : document.select("br"))
// if (br.parent() != null && !hasVisibleContent(br.parent().childNodes()))
// br.tagName("span");
// Paragraphs
for (Element p : document.select("p"))
for (Element p : document.select("p")) {
p.appendElement("br");
p.tagName("div");
}
// Short quotes
for (Element q : document.select("q")) {
@ -480,7 +482,6 @@ public class HtmlHelper {
div.children().select("div").size() == 0 &&
hasVisibleContent(div.childNodes())) {
div.appendElement("br");
div.appendElement("br");
}
for (Element div : document.select("div"))

Loading…
Cancel
Save