mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-23 00:06:27 +00:00
Fixed table alignment
This commit is contained in:
parent
2a9eb01da7
commit
a773f28950
1 changed files with 15 additions and 28 deletions
|
@ -2140,18 +2140,6 @@ public class HtmlHelper {
|
|||
setSpan(ssb, new StrikethroughSpan(), start, ssb.length());
|
||||
break;
|
||||
case "text-align":
|
||||
boolean table = false;
|
||||
Element e = element;
|
||||
while (e != null) {
|
||||
if ("table".equals(e.tagName()) ||
|
||||
"true".equals(e.attr("x-table"))) {
|
||||
table = true;
|
||||
break;
|
||||
}
|
||||
e = e.parent();
|
||||
}
|
||||
|
||||
if (!table) {
|
||||
// https://developer.mozilla.org/en-US/docs/Web/CSS/text-align
|
||||
Layout.Alignment alignment = null;
|
||||
switch (value) {
|
||||
|
@ -2169,7 +2157,6 @@ public class HtmlHelper {
|
|||
}
|
||||
if (alignment != null)
|
||||
setSpan(ssb, new AlignmentSpan.Standard(alignment), start, ssb.length());
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue