mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 06:01:12 +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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue