mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Fixed list margins
This commit is contained in:
@@ -953,6 +953,20 @@ public class HtmlHelper {
|
||||
// Fix dangling table elements
|
||||
document.select("tr,th,td").tagName("div");
|
||||
|
||||
// Lists
|
||||
for (Element e : document.select("ol,ul")) {
|
||||
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");
|
||||
} else {
|
||||
String style = e.attr("style");
|
||||
e.attr("style",
|
||||
mergeStyles(style, "margin:0"));
|
||||
}
|
||||
}
|
||||
|
||||
// Images
|
||||
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img
|
||||
for (Element img : document.select("img")) {
|
||||
|
||||
Reference in New Issue
Block a user