Unflatten list for viewing

pull/207/head
M66B 3 years ago
parent e643271f13
commit 16607f4952

@ -1280,7 +1280,10 @@ public class HtmlHelper {
if (!"false".equals(e.attr("x-line-after"))) if (!"false".equals(e.attr("x-line-after")))
e.attr("x-line-after", "true"); e.attr("x-line-after", "true");
} }
if ("ol".equals(e.tagName()) || "ul".equals(e.tagName()))
// Unflatten list for viewing
if ((parent != null && "li".equals(parent.tagName())) &&
("ol".equals(e.tagName()) || "ul".equals(e.tagName())))
e.attr("x-list-level", "false"); e.attr("x-list-level", "false");
} else { } else {
if (!BuildConfig.DEBUG) { if (!BuildConfig.DEBUG) {

Loading…
Cancel
Save