mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-25 15:32:52 +00:00
Fixed nested aligns
This commit is contained in:
parent
c77bfead55
commit
564cc37c43
1 changed files with 5 additions and 0 deletions
|
@ -1905,6 +1905,11 @@ public class HtmlHelper {
|
|||
ssb.setSpan(new StrikethroughSpan(), start, ssb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
break;
|
||||
case "text-align":
|
||||
for (AlignmentSpan span : ssb.getSpans(0, start, AlignmentSpan.class)) {
|
||||
int s = ssb.getSpanStart(span);
|
||||
ssb.removeSpan(span);
|
||||
ssb.setSpan(span, s, start, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
}
|
||||
Layout.Alignment alignment = null;
|
||||
switch (value) {
|
||||
case "left":
|
||||
|
|
Loading…
Reference in a new issue