mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-25 07:23:03 +00:00
Remove br at end of paragraph
This commit is contained in:
parent
3917be6c77
commit
6137988040
1 changed files with 8 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue