mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 16:43:26 +02:00
Prepend line break if visible content only
This commit is contained in:
@@ -646,7 +646,7 @@ public class HtmlHelper {
|
||||
// Selective new lines
|
||||
for (Element div : document.select("div")) {
|
||||
Node prev = div.previousSibling();
|
||||
if (prev instanceof Element && !((Element) prev).isBlock())
|
||||
if (prev != null && hasVisibleContent(Arrays.asList(prev)))
|
||||
div.prependElement("br");
|
||||
|
||||
if (hasVisibleContent(div.childNodes()))
|
||||
|
||||
Reference in New Issue
Block a user