Skip to content

Commit 454d187

Browse files
committed
Correct typographical errors
1 parent 4d283d3 commit 454d187

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ class AztecText : android.support.v7.widget.AppCompatEditText, TextWatcher, Unkn
466466
if (!isViewInitialized) return
467467

468468
if (length() != 0) {
469-
// if the text end has the marker, let's make sure the cursor never includes it or surpusses it
469+
// if the text end has the marker, let's make sure the cursor never includes it or surpasses it
470470
if ((selStart == length() || selEnd == length()) && text[length() - 1] == Constants.END_OF_BUFFER_MARKER) {
471471
var start = selStart
472472
var end = selEnd
@@ -829,7 +829,7 @@ class AztecText : android.support.v7.widget.AppCompatEditText, TextWatcher, Unkn
829829
val parser = AztecParser()
830830
val output = SpannableStringBuilder(selectedText)
831831

832-
//Strip block elements untill we figure out copy paste completely
832+
//Strip block elements until we figure out copy paste completely
833833
output.getSpans(0, output.length, ParagraphStyle::class.java).forEach { output.removeSpan(it) }
834834
clearMetaSpans(output)
835835
parser.syncVisualNewlinesOfBlockElements(output)
@@ -1056,7 +1056,7 @@ class AztecText : android.support.v7.widget.AppCompatEditText, TextWatcher, Unkn
10561056
attributePredicate.matches(it.attributes)
10571057
}
10581058
.forEach {
1059-
it.setOverayLevel(index, level)
1059+
it.setOverlayLevel(index, level)
10601060
}
10611061
}
10621062

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ class SourceViewEditText : android.support.v7.widget.AppCompatEditText, TextWatc
189189
if (newlineBefore && newlineAfter) {
190190
cursorTagIndex--
191191

192-
// remove one of the newlines as those are an artefact of the extra formatting applied around the cursor marker
192+
// remove one of the newlines as those are an artifact of the extra formatting applied around the cursor marker
193193
styledHtml.delete(cursorTagIndex, cursorTagIndex + 1)
194194
}
195195

aztec/src/main/kotlin/org/wordpress/aztec/spans/AztecMediaSpan.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class AztecMediaSpan(context: Context, drawable: Drawable?, override var attribu
4949
overlays.clear()
5050
}
5151

52-
fun setOverayLevel(index: Int, level: Int): Boolean {
52+
fun setOverlayLevel(index: Int, level: Int): Boolean {
5353
return overlays[index].first?.setLevel(level) ?: false
5454
}
5555

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ class AztecParserTest : AndroidTestCase() {
10931093
}
10941094

10951095
/**
1096-
* Parse HTML of header with single character surounded by other headers to span to HTML. If input and output are equal with
1096+
* Parse HTML of header with single character surrounded by other headers to span to HTML. If input and output are equal with
10971097
* the same length and corresponding characters, [AztecParser] is correct.
10981098
*
10991099
* @throws Exception
@@ -1163,7 +1163,7 @@ class AztecParserTest : AndroidTestCase() {
11631163

11641164
@Test
11651165
@Throws(Exception::class)
1166-
fun parseHtmlToSpanToHtmlMixedContentInListitem_isEqual() {
1166+
fun parseHtmlToSpanToHtmlMixedContentInListItem_isEqual() {
11671167
val input = "<ul><li>some text<blockquote>Quote</blockquote>some text</li></ul>"
11681168
val span = SpannableString(mParser.fromHtml(input, null, null, context))
11691169
val output = mParser.toHtml(span)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ object TestUtils {
3636
* Issue a Backspace key event
3737
*
3838
* @param text The EditText to issue the key event to
39-
* @param position The position to set the cursor prior to issueing the backspace
39+
* @param position The position to set the cursor prior to issuing the backspace
4040
*/
4141
fun backspaceAt(text: EditText, position: Int) {
4242
text.setSelection(position)
@@ -50,7 +50,7 @@ object TestUtils {
5050
/**
5151
* Helper for calculating the EditText's length *without* counting the the end-of-text marker char if present
5252
*
53-
* @param text The EditText to check for lengh sans the end-of-text marker char if present
53+
* @param text The EditText to check for length sans the end-of-text marker char if present
5454
* @return The length of text sans the end-of-text marker char if present
5555
*/
5656
fun safeLength(text: EditText): Int {

0 commit comments

Comments
 (0)