File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
aztec/src/main/kotlin/org/wordpress/aztec/source Expand file tree Collapse file tree 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
66import org.jsoup.Jsoup
77import org.jsoup.nodes.Document
88import org.jsoup.nodes.Element
9- import org.jsoup.select.Elements
109import org.wordpress.aztec.spans.AztecQuoteSpan
1110import org.wordpress.aztec.spans.AztecVisualLinebreak
1211import 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
You can’t perform that action at this time.
0 commit comments