Skip to content

Commit 8a0e5bb

Browse files
committed
Fix applying block styling to multi-line list items
1 parent 9f8ba17 commit 8a0e5bb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/formatting/BlockFormatter.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,6 @@ class BlockFormatter(editor: AztecText, val listStyle: ListStyle, val quoteStyle
565565

566566
// we can't add blocks around composite block elements (i.e. list items), everything must go inside
567567
val isListItem = editableText.getSpans(start, end, IAztecCompositeBlockSpan::class.java)
568-
.filter { editableText.getSpanStart(it) >= start && editableText.getSpanEnd(it) <= end }
569568
.any { it.nestingLevel == nesting }
570569

571570
if (isListItem) {

0 commit comments

Comments
 (0)