mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
Suppress br at end of div for plain text
This commit is contained in:
@@ -1199,7 +1199,10 @@ public class HtmlHelper {
|
||||
else if ("pre".equals(name))
|
||||
plevel++;
|
||||
|
||||
if (heads.contains(name))
|
||||
if (heads.contains(name) &&
|
||||
!("br".equals(name) &&
|
||||
node.nextSibling() == null &&
|
||||
node.parent() != null && "div".equals(node.parent().nodeName())))
|
||||
newline();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user