Skip to content

Commit 1950e92

Browse files
committed
Changed from full width image span to AztecCommentSpan.
1 parent 83dd297 commit 1950e92

File tree

1 file changed

+1
-1
lines changed
  • aztec/src/main/kotlin/org/wordpress/aztec/source

1 file changed

+1
-1
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/source/Format.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ object Format {
349349

350350
//remove visual newline marking around comment and line spans to add a space above and below them in source editor
351351
if (spanStart > 0 && (
352-
text.getSpans(spanStart - 1, spanEnd, AztecFullWidthImageSpan::class.java).isNotEmpty() ||
352+
text.getSpans(spanStart - 1, spanEnd, AztecCommentSpan::class.java).isNotEmpty() ||
353353
text.getSpans(spanStart - 1, spanEnd, CommentSpan::class.java).isNotEmpty() ||
354354
text.getSpans(spanStart - 1, spanEnd, AztecHorizontalLineSpan::class.java).isNotEmpty())) {
355355
text.getSpans(spanStart, spanEnd, AztecVisualLinebreak::class.java).forEach { text.removeSpan(it) }

0 commit comments

Comments
 (0)