Suppress br at end of div for plain text

pull/175/head
M66B 5 years ago
parent d254dd0ca7
commit 4c2d80d21b

@ -1199,7 +1199,10 @@ public class HtmlHelper {
else if ("pre".equals(name))
plevel++;
if (heads.contains(name))
if (heads.contains(name) &&
!("br".equals(name) &&
node.nextSibling() == null &&
node.parent() != null && "div".equals(node.parent().nodeName())))
newline();
}
}

Loading…
Cancel
Save