|
|
@ -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"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|