Table/text-align

pull/212/head
M66B 2 years ago
parent bbe50830dd
commit a369a8ae64

@ -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))

Loading…
Cancel
Save