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:
parent
782394d655
commit
db7608a833
1 changed files with 6 additions and 5 deletions
|
@ -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…
Reference in a new issue