Paragraph alignment

This commit is contained in:
M66B
2020-10-03 14:26:03 +02:00
parent 6058dd11e5
commit f5c17f70cd
3 changed files with 6 additions and 3 deletions

View File

@@ -2322,7 +2322,9 @@ public class HtmlHelper {
int s = start.get(spans[i]);
int e = end.get(spans[i]);
int f = flags.get(spans[i]);
if (spans[i] instanceof BulletSpan || spans[i] instanceof NumberSpan)
if (spans[i] instanceof AlignmentSpan ||
spans[i] instanceof BulletSpan ||
spans[i] instanceof NumberSpan)
if (s > 1 && ssb.charAt(s - 1) == '\n' &&
e > 1 && ssb.charAt(e - 1) == '\n')
f |= Spanned.SPAN_PARAGRAPH;