Skip to content

Commit 0dfd4bb

Browse files
authored
Merge pull request #1055 from wordpress-mobile/fix/do-not-remove-empty-line-between-paragraphs
Do not remove empty line after a paragraph
2 parents f29186e + 64efd3f commit 0dfd4bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/AztecParser.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,8 @@ class AztecParser @JvmOverloads constructor(private val alignmentRendering: Alig
567567
i = next
568568
}
569569

570-
for (z in 0..nl - 1) {
571-
val parentSharesEnd = parents?.any { text.getSpanEnd(it) == end + 1 + z } ?: false
570+
for (z in 0 until nl) {
571+
val parentSharesEnd = parents?.any { text.getSpanEnd(it) == end + z } ?: false
572572
if (parentSharesEnd) {
573573
continue
574574
}

0 commit comments

Comments
 (0)