Fixed missing new line

pull/184/head
M66B 4 years ago
parent 9d2ab7c2e9
commit 96a75e8cf4

@ -309,9 +309,9 @@ public class HtmlHelper {
Element holder = body.child(body.childrenSize() - 1); Element holder = body.child(body.childrenSize() - 1);
if ("p".equals(holder.tagName())) { if ("p".equals(holder.tagName())) {
holder.tagName("span"); holder.tagName("span");
int c = holder.childrenSize(); int c = holder.childNodeSize();
Element last = (c > 0 ? holder.child(c - 1) : null); Node last = (c > 0 ? holder.childNode(c - 1) : null);
if (last == null || !"br".equals(last.tagName())) if (last == null || !"br".equals(last.nodeName()))
holder.appendChild(new Element("br")); holder.appendChild(new Element("br"));
} }
} }

Loading…
Cancel
Save