Skip to content

Commit 4fb183b

Browse files
style: fix whitespace, imports, and comments messed up by upstream merge
1 parent 76e9c03 commit 4fb183b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import org.wordpress.aztec.spans.IAztecExclusiveInlineSpan
2828
import org.wordpress.aztec.spans.IAztecInlineSpan
2929
import org.wordpress.aztec.spans.MarkSpan
3030
import org.wordpress.aztec.watchers.TextChangedEvent
31-
import java.util.ArrayList
3231

3332
/**
3433
* <b>Important</b> - use [applySpan] to add new spans to the editor. This method will
@@ -217,6 +216,7 @@ class InlineFormatter(editor: AztecText, val codeStyle: CodeStyle, private val h
217216

218217
applySpan(spanToApply, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)
219218
}
219+
220220
joinStyleSpans(start, end)
221221
}
222222

@@ -304,6 +304,7 @@ class InlineFormatter(editor: AztecText, val codeStyle: CodeStyle, private val h
304304
}
305305
}
306306

307+
// remove the CSS style span
307308
removeInlineCssStyle()
308309

309310
list.forEach {
@@ -346,7 +347,6 @@ class InlineFormatter(editor: AztecText, val codeStyle: CodeStyle, private val h
346347

347348
// TODO: Check if there is more efficient way to tidy spans
348349
fun joinStyleSpans(start: Int, end: Int) {
349-
350350
// joins spans on the left
351351
if (start > 1) {
352352
val spansInSelection = editableText.getSpans(start, end, IAztecInlineSpan::class.java)

aztec/src/test/kotlin/org/wordpress/aztec/AztecToolbarTest.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import org.junit.Test
88
import org.junit.runner.RunWith
99
import org.robolectric.Robolectric
1010
import org.robolectric.RobolectricTestRunner
11-
import org.robolectric.annotation.Config
1211
import org.wordpress.aztec.plugins.BackgroundColorButton
1312
import org.wordpress.aztec.source.SourceViewEditText
1413
import org.wordpress.aztec.toolbar.AztecToolbar

0 commit comments

Comments
 (0)