mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-04 03:43:55 +01:00
Fixed paragraph span flag
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user