File tree 1 file changed +1
-3
lines changed
aztec/src/main/kotlin/org/wordpress/aztec/source
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import android.text.TextUtils
6
6
import org.jsoup.Jsoup
7
7
import org.jsoup.nodes.Document
8
8
import org.jsoup.nodes.Element
9
- import org.jsoup.select.Elements
10
9
import org.wordpress.aztec.spans.AztecQuoteSpan
11
10
import org.wordpress.aztec.spans.AztecVisualLinebreak
12
11
import org.wordpress.aztec.spans.EndOfParagraphMarker
@@ -32,8 +31,7 @@ object Format {
32
31
CleaningUtils .cleanNestedBoldTags(doc)
33
32
if (isCalypsoFormat) {
34
33
// remove empty span tags
35
- val select: Elements = doc.select(" *" )
36
- select.filter { element: Element ->
34
+ doc.select(" *" ).filter { element: Element ->
37
35
! element.hasText() && element.tagName() == " span" && element.childNodes().size == 0
38
36
}.forEach { it.remove() }
39
37
You can’t perform that action at this time.
0 commit comments