mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 14:41:08 +00:00
Fixed newlines for sub lists
This commit is contained in:
parent
90a00eda1b
commit
f6e3e63ee5
1 changed files with 8 additions and 4 deletions
|
@ -969,10 +969,14 @@ public class HtmlHelper {
|
|||
// Lists
|
||||
for (Element e : document.select("ol,ul,blockquote")) {
|
||||
if (view) {
|
||||
if (!"false".equals(e.attr("x-line-before")))
|
||||
e.attr("x-line-before", "true");
|
||||
if (!"false".equals(e.attr("x-line-after")))
|
||||
e.attr("x-line-after", "true");
|
||||
Element parent = e.parent();
|
||||
if ("blockquote".equals(e.tagName()) || parent == null ||
|
||||
!("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")))
|
||||
e.attr("x-line-after", "true");
|
||||
}
|
||||
} else {
|
||||
String style = e.attr("style");
|
||||
e.attr("style",
|
||||
|
|
Loading…
Reference in a new issue