mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 17:13:23 +02:00
Support for ordered lists
This commit is contained in:
@@ -507,7 +507,11 @@ public class HtmlHelper {
|
||||
// Lists
|
||||
for (Element li : document.select("li")) {
|
||||
li.tagName("span");
|
||||
li.prependText("* ");
|
||||
Element parent = li.parent();
|
||||
if (parent == null || "ul".equals(parent.tagName()))
|
||||
li.prependText("• ");
|
||||
else
|
||||
li.prependText((li.elementSiblingIndex() + 1) + ". ");
|
||||
li.appendElement("br"); // line break after list item
|
||||
}
|
||||
document.select("ol").tagName("div");
|
||||
|
||||
Reference in New Issue
Block a user