mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 11:28:41 +01:00
Reparent sub lists
This commit is contained in:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user