mirror of https://github.com/M66B/FairEmail.git
Fixed removing newlines
This commit is contained in:
parent
cd821fc7c3
commit
f45cf6b8ff
|
@ -1104,8 +1104,8 @@ public class HtmlHelper {
|
|||
for (Element p : document.select("p")) {
|
||||
p.tagName("div");
|
||||
|
||||
Element last = p.lastElementChild();
|
||||
if (last != null && "br".equals(last.tagName()))
|
||||
Node last = p.lastChild();
|
||||
if (last != null && "br".equals(last.nodeName()))
|
||||
last.remove();
|
||||
|
||||
if (TextUtils.isEmpty(p.text())) {
|
||||
|
|
Loading…
Reference in New Issue