Fixed extra new lines sub lists

This commit is contained in:
M66B 2022-05-20 15:28:28 +02:00
parent 89d02c604d
commit b1e0a9c365
1 changed files with 3 additions and 1 deletions

View File

@ -1272,7 +1272,9 @@ public class HtmlHelper {
if (view) {
Element parent = e.parent();
if ("blockquote".equals(e.tagName()) || parent == null ||
!("ol".equals(parent.tagName()) || "ul".equals(parent.tagName()))) {
!("li".equals(parent.tagName()) ||
"ol".equals(parent.tagName()) ||
"ul".equals(parent.tagName()))) {
if (!"false".equals(e.attr("x-line-before")))
e.attr("x-line-before", "true");
if (!"false".equals(e.attr("x-line-after")))