mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 22:21:18 +00:00
Fixed block quote newlines
This commit is contained in:
parent
aeb07df400
commit
e9e656f763
1 changed files with 10 additions and 0 deletions
|
@ -2392,6 +2392,16 @@ public class HtmlHelper {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (Element quote : doc.select("blockquote")) {
|
||||||
|
Element prev = quote.previousElementSibling();
|
||||||
|
if (prev != null && "br".equals(prev.tagName()))
|
||||||
|
prev.remove();
|
||||||
|
|
||||||
|
Element last = quote.children().last();
|
||||||
|
if (last != null && "br".equals(last.tagName()))
|
||||||
|
last.remove();
|
||||||
|
}
|
||||||
|
|
||||||
return doc.html();
|
return doc.html();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue