mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-08 18:13:24 +02:00
Fixed nested aligns
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user