Skip to content

Commit

Permalink
Inline select
Browse files Browse the repository at this point in the history
  • Loading branch information
wzieba committed Aug 8, 2024
1 parent 9a1015d commit 5bee1c9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions aztec/src/main/kotlin/org/wordpress/aztec/source/Format.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import android.text.TextUtils
import org.jsoup.Jsoup
import org.jsoup.nodes.Document
import org.jsoup.nodes.Element
import org.jsoup.select.Elements
import org.wordpress.aztec.spans.AztecQuoteSpan
import org.wordpress.aztec.spans.AztecVisualLinebreak
import org.wordpress.aztec.spans.EndOfParagraphMarker
Expand All @@ -32,8 +31,7 @@ object Format {
CleaningUtils.cleanNestedBoldTags(doc)
if (isCalypsoFormat) {
// remove empty span tags
val select: Elements = doc.select("*")
select.filter { element: Element ->
doc.select("*").filter { element: Element ->
!element.hasText() && element.tagName() == "span" && element.childNodes().size == 0
}.forEach { it.remove() }

Expand Down

0 comments on commit 5bee1c9

Please sign in to comment.