mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-06 04:45:50 +01:00
Fixed indent span cursor position
This commit is contained in:
@@ -2663,7 +2663,7 @@ public class HtmlHelper {
|
||||
else
|
||||
setSpan(ssb, new QuoteSpan(colorBlockquote, quoteStripe, quoteGap), start, ssb.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
|
||||
} else
|
||||
setSpan(ssb, new IndentSpan(intentSize), start, ssb.length());
|
||||
setSpan(ssb, new IndentSpan(intentSize), start, ssb.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE);
|
||||
break;
|
||||
case "br":
|
||||
ssb.append('\n');
|
||||
|
||||
@@ -559,7 +559,7 @@ public class StyleHelper {
|
||||
edit.removeSpan(indents[0]);
|
||||
} else {
|
||||
IndentSpan is = new IndentSpan(intentSize);
|
||||
edit.setSpan(is, prev, next, Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
|
||||
edit.setSpan(is, prev, next, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
|
||||
}
|
||||
|
||||
next++;
|
||||
|
||||
Reference in New Issue
Block a user