mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 22:51:02 +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
|
// Lists
|
||||||
for (Element e : document.select("ol,ul,blockquote")) {
|
for (Element e : document.select("ol,ul,blockquote")) {
|
||||||
if (view) {
|
if (view) {
|
||||||
if (!"false".equals(e.attr("x-line-before")))
|
Element parent = e.parent();
|
||||||
e.attr("x-line-before", "true");
|
if ("blockquote".equals(e.tagName()) || parent == null ||
|
||||||
if (!"false".equals(e.attr("x-line-after")))
|
!("ol".equals(parent.tagName()) || "ul".equals(parent.tagName()))) {
|
||||||
e.attr("x-line-after", "true");
|
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 {
|
} else {
|
||||||
String style = e.attr("style");
|
String style = e.attr("style");
|
||||||
e.attr("style",
|
e.attr("style",
|
||||||
|
|
Loading…
Reference in a new issue