From 64efd3f6628f107c799648d1ebc1c511883f60f8 Mon Sep 17 00:00:00 2001 From: vojtasmrcek Date: Thu, 3 Aug 2023 15:58:29 +0200 Subject: [PATCH] Do not remove empty line after a paragraph --- aztec/src/main/kotlin/org/wordpress/aztec/AztecParser.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aztec/src/main/kotlin/org/wordpress/aztec/AztecParser.kt b/aztec/src/main/kotlin/org/wordpress/aztec/AztecParser.kt index 04fee4f10..8d84385fe 100644 --- a/aztec/src/main/kotlin/org/wordpress/aztec/AztecParser.kt +++ b/aztec/src/main/kotlin/org/wordpress/aztec/AztecParser.kt @@ -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 }