Fixed removing newlines

This commit is contained in:
M66B 2023-07-02 10:54:39 +02:00
parent cd821fc7c3
commit f45cf6b8ff
1 changed files with 2 additions and 2 deletions

View File

@ -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())) {