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")) {
|
for (Element p : document.select("p")) {
|
||||||
p.tagName("div");
|
p.tagName("div");
|
||||||
|
|
||||||
Element last = p.lastElementChild();
|
Node last = p.lastChild();
|
||||||
if (last != null && "br".equals(last.tagName()))
|
if (last != null && "br".equals(last.nodeName()))
|
||||||
last.remove();
|
last.remove();
|
||||||
|
|
||||||
if (TextUtils.isEmpty(p.text())) {
|
if (TextUtils.isEmpty(p.text())) {
|
||||||
|
|
Loading…
Reference in New Issue