mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Table/text-align
This commit is contained in:
@@ -666,9 +666,10 @@ public class HtmlHelper {
|
||||
if ("center".equals(element.tagName())) {
|
||||
style = mergeStyles(style, "text-align:center");
|
||||
element.tagName("div");
|
||||
} else if ("table".equals(element.tagName()))
|
||||
style = mergeStyles(style, "text-align:left");
|
||||
else {
|
||||
} else if ("table".equals(element.tagName())) {
|
||||
if (!element.attr("style").contains("text-align"))
|
||||
style = mergeStyles(style, "text-align:left");
|
||||
} else {
|
||||
// https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
|
||||
String align = element.attr("align");
|
||||
if (!TextUtils.isEmpty(align))
|
||||
|
||||
Reference in New Issue
Block a user