Skip to content

Commit

Permalink
Remove markStyleColor check
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo committed Mar 7, 2024
1 parent d83e764 commit 99b5c9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class InlineFormatter(editor: AztecText, val codeStyle: CodeStyle, private val h
if (!editor.selectedStyles.contains(AztecTextFormat.FORMAT_MARK) && start >= 1 && end > 1 ) {
val previousMarkSpan = editableText.getSpans(start - 1, start, MarkSpan::class.java)
val markSpan = editableText.getSpans(start, end, MarkSpan::class.java)
if (markSpan.isNotEmpty() || (previousMarkSpan.isNotEmpty() && markStyleColor == null)) {
if (markSpan.isNotEmpty() || previousMarkSpan.isNotEmpty()) {
removeInlineCssStyle(start, end)
return
}
Expand Down

0 comments on commit 99b5c9f

Please sign in to comment.