mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 09:03:56 +02:00
Remove br at end of paragraph
This commit is contained in:
@@ -1112,6 +1112,14 @@ public class HtmlHelper {
|
||||
hs.attr("x-line-after", "true");
|
||||
}
|
||||
|
||||
// Breaks
|
||||
for (Element br : document.select("br")) {
|
||||
Element parent = br.parent();
|
||||
Element last = (parent == null ? null : parent.lastElementChild());
|
||||
if (br == last)
|
||||
br.remove();
|
||||
}
|
||||
|
||||
// Paragraphs
|
||||
for (Element p : document.select("p")) {
|
||||
p.tagName("div");
|
||||
|
||||
Reference in New Issue
Block a user