Skip to content

Commit 99b5c9f

Browse files
author
Gerardo
committed
Remove markStyleColor check
1 parent d83e764 commit 99b5c9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/formatting/InlineFormatter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class InlineFormatter(editor: AztecText, val codeStyle: CodeStyle, private val h
129129
if (!editor.selectedStyles.contains(AztecTextFormat.FORMAT_MARK) && start >= 1 && end > 1 ) {
130130
val previousMarkSpan = editableText.getSpans(start - 1, start, MarkSpan::class.java)
131131
val markSpan = editableText.getSpans(start, end, MarkSpan::class.java)
132-
if (markSpan.isNotEmpty() || (previousMarkSpan.isNotEmpty() && markStyleColor == null)) {
132+
if (markSpan.isNotEmpty() || previousMarkSpan.isNotEmpty()) {
133133
removeInlineCssStyle(start, end)
134134
return
135135
}

0 commit comments

Comments
 (0)