Fixed indent span cursor position

pull/199/head
M66B 4 years ago
parent 42fe14909a
commit e94a8e1130

@ -2663,7 +2663,7 @@ public class HtmlHelper {
else else
setSpan(ssb, new QuoteSpan(colorBlockquote, quoteStripe, quoteGap), start, ssb.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE); setSpan(ssb, new QuoteSpan(colorBlockquote, quoteStripe, quoteGap), start, ssb.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
} else } else
setSpan(ssb, new IndentSpan(intentSize), start, ssb.length()); setSpan(ssb, new IndentSpan(intentSize), start, ssb.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE);
break; break;
case "br": case "br":
ssb.append('\n'); ssb.append('\n');

@ -559,7 +559,7 @@ public class StyleHelper {
edit.removeSpan(indents[0]); edit.removeSpan(indents[0]);
} else { } else {
IndentSpan is = new IndentSpan(intentSize); IndentSpan is = new IndentSpan(intentSize);
edit.setSpan(is, prev, next, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); edit.setSpan(is, prev, next, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
} }
next++; next++;

Loading…
Cancel
Save