mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-29 03:05:31 +00:00
Let line breaking match original message closer
This commit is contained in:
parent
87aae49496
commit
393e3b6c3b
1 changed files with 1 additions and 5 deletions
|
@ -649,13 +649,9 @@ public class HtmlHelper {
|
|||
if (prev instanceof Element && !((Element) prev).isBlock())
|
||||
div.prependElement("br");
|
||||
|
||||
int childs = div.childNodeSize();
|
||||
Node last = (childs > 0 ? div.childNode(childs - 1) : null);
|
||||
if ((last == null || !"div".equals(last.nodeName())) &&
|
||||
hasVisibleContent(div.childNodes())) {
|
||||
if (hasVisibleContent(div.childNodes()))
|
||||
div.appendElement("br");
|
||||
}
|
||||
}
|
||||
|
||||
for (Element div : document.select("div"))
|
||||
div.tagName("span");
|
||||
|
|
Loading…
Reference in a new issue