Skip to content

Commit

Permalink
Merge pull request #1055 from wordpress-mobile/fix/do-not-remove-empt…
Browse files Browse the repository at this point in the history
…y-line-between-paragraphs

Do not remove empty line after a paragraph
  • Loading branch information
nbradbury authored Aug 4, 2023
2 parents f29186e + 64efd3f commit 0dfd4bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aztec/src/main/kotlin/org/wordpress/aztec/AztecParser.kt
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,8 @@ class AztecParser @JvmOverloads constructor(private val alignmentRendering: Alig
i = next
}

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

0 comments on commit 0dfd4bb

Please sign in to comment.