We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
select
1 parent 9a1015d commit 5bee1c9Copy full SHA for 5bee1c9
1 file changed
aztec/src/main/kotlin/org/wordpress/aztec/source/Format.kt
@@ -6,7 +6,6 @@ import android.text.TextUtils
6
import org.jsoup.Jsoup
7
import org.jsoup.nodes.Document
8
import org.jsoup.nodes.Element
9
-import org.jsoup.select.Elements
10
import org.wordpress.aztec.spans.AztecQuoteSpan
11
import org.wordpress.aztec.spans.AztecVisualLinebreak
12
import org.wordpress.aztec.spans.EndOfParagraphMarker
@@ -32,8 +31,7 @@ object Format {
32
31
CleaningUtils.cleanNestedBoldTags(doc)
33
if (isCalypsoFormat) {
34
// remove empty span tags
35
- val select: Elements = doc.select("*")
36
- select.filter { element: Element ->
+ doc.select("*").filter { element: Element ->
37
!element.hasText() && element.tagName() == "span" && element.childNodes().size == 0
38
}.forEach { it.remove() }
39
0 commit comments