mirror of https://github.com/M66B/FairEmail.git
Reparent sub lists
This commit is contained in:
parent
89363461d5
commit
f29cbd1f0e
|
@ -3704,6 +3704,14 @@ public class HtmlHelper {
|
|||
li.removeAttr("dir");
|
||||
}
|
||||
e.attr("dir", rtl > ltr ? "rtl" : "ltr");
|
||||
|
||||
Element parent = e.parent();
|
||||
Element prev = e.previousElementSibling();
|
||||
if (parent != null && !"li".equals(parent.tagName()) &&
|
||||
prev != null && "li".equals(prev.tagName())) {
|
||||
e.remove();
|
||||
prev.appendChild(e);
|
||||
}
|
||||
}
|
||||
|
||||
for (Element quote : doc.select("blockquote")) {
|
||||
|
|
Loading…
Reference in New Issue