|
|
@ -2570,11 +2570,11 @@ public class HtmlHelper {
|
|
|
|
spans[i] instanceof BulletSpan ||
|
|
|
|
spans[i] instanceof BulletSpan ||
|
|
|
|
spans[i] instanceof NumberSpan) {
|
|
|
|
spans[i] instanceof NumberSpan) {
|
|
|
|
if (spans[i] instanceof AlignmentSpan &&
|
|
|
|
if (spans[i] instanceof AlignmentSpan &&
|
|
|
|
!(e > 1 && ssb.charAt(e - 1) == '\n') &&
|
|
|
|
!(e > 0 && ssb.charAt(e - 1) == '\n') &&
|
|
|
|
e < ssb.length() && ssb.charAt(e) == '\n')
|
|
|
|
e < ssb.length() && ssb.charAt(e) == '\n')
|
|
|
|
e++;
|
|
|
|
e++;
|
|
|
|
if (s > 1 && ssb.charAt(s - 1) == '\n' &&
|
|
|
|
if (s > 0 && ssb.charAt(s - 1) == '\n' &&
|
|
|
|
e > 1 && ssb.charAt(e - 1) == '\n')
|
|
|
|
e > 0 && ssb.charAt(e - 1) == '\n')
|
|
|
|
f |= Spanned.SPAN_PARAGRAPH;
|
|
|
|
f |= Spanned.SPAN_PARAGRAPH;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ssb.setSpan(spans[i], s, e, f);
|
|
|
|
ssb.setSpan(spans[i], s, e, f);
|
|
|
|