We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5843549 commit 19c26c6Copy full SHA for 19c26c6
aztec/src/main/kotlin/org/wordpress/aztec/AztecParser.kt
@@ -180,7 +180,7 @@ class AztecParser {
180
val spanEnd = spanned.getSpanEnd(it)
181
182
// block spans include a newline at the end, we need to account for that
183
- val newlineExpected = if (it is AztecBlockSpan) spanEnd - 1 else spanEnd
+ val newlineExpected = if (it is AztecBlockSpan && spanEnd > 0) spanEnd - 1 else spanEnd
184
185
if (spanEnd == spanned.length) {
186
// no visual newline if at text end
0 commit comments