mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 22:56:33 +02:00
Remove br from paragraphs only
This commit is contained in:
@@ -1115,8 +1115,9 @@ public class HtmlHelper {
|
||||
// Breaks
|
||||
for (Element br : document.select("br")) {
|
||||
Element parent = br.parent();
|
||||
Element last = (parent == null ? null : parent.lastElementChild());
|
||||
if (br == last)
|
||||
if (parent == null || !"p".equals(parent.tagName()))
|
||||
continue;
|
||||
if (br == parent.lastElementChild())
|
||||
br.remove();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user