Skip to content

Commit 5bee1c9

Browse files
committed
Inline select
1 parent 9a1015d commit 5bee1c9

File tree

1 file changed

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

1 file changed

+1
-3
lines changed

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import android.text.TextUtils
66
import org.jsoup.Jsoup
77
import org.jsoup.nodes.Document
88
import org.jsoup.nodes.Element
9-
import org.jsoup.select.Elements
109
import org.wordpress.aztec.spans.AztecQuoteSpan
1110
import org.wordpress.aztec.spans.AztecVisualLinebreak
1211
import org.wordpress.aztec.spans.EndOfParagraphMarker
@@ -32,8 +31,7 @@ object Format {
3231
CleaningUtils.cleanNestedBoldTags(doc)
3332
if (isCalypsoFormat) {
3433
// remove empty span tags
35-
val select: Elements = doc.select("*")
36-
select.filter { element: Element ->
34+
doc.select("*").filter { element: Element ->
3735
!element.hasText() && element.tagName() == "span" && element.childNodes().size == 0
3836
}.forEach { it.remove() }
3937

0 commit comments

Comments
 (0)