mirror of https://github.com/M66B/FairEmail.git
Fixed paragraph span flag
This commit is contained in:
parent
41615e188b
commit
12884cc3d2
|
@ -2570,11 +2570,11 @@ public class HtmlHelper {
|
|||
spans[i] instanceof BulletSpan ||
|
||||
spans[i] instanceof NumberSpan) {
|
||||
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++;
|
||||
if (s > 1 && ssb.charAt(s - 1) == '\n' &&
|
||||
e > 1 && ssb.charAt(e - 1) == '\n')
|
||||
if (s > 0 && ssb.charAt(s - 1) == '\n' &&
|
||||
e > 0 && ssb.charAt(e - 1) == '\n')
|
||||
f |= Spanned.SPAN_PARAGRAPH;
|
||||
}
|
||||
ssb.setSpan(spans[i], s, e, f);
|
||||
|
|
Loading…
Reference in New Issue