1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-22 06:01:12 +00:00

Less line breaking

This commit is contained in:
M66B 2019-11-11 11:32:47 +01:00
parent 782394d655
commit db7608a833

View file

@ -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"))