Skip to content

Commit

Permalink
Temporary skip unsupported annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
MatkovIvan committed Dec 9, 2024
1 parent 42a268a commit de3f25a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,8 @@ internal class ParagraphBuilder(
val cuts = mutableListOf<Cut>()
for (annotation in annotations) {

// TODO https://youtrack.jetbrains.com/issue/CMP-7151/Support-ParagraphIntrinsics-with-annotations
annotation.item as SpanStyle
// TODO https://youtrack.jetbrains.com/issue/CMP-7151
if (annotation.item !is SpanStyle) continue

cuts.add(Cut.StyleAdd(annotation.start, annotation.item))
cuts.add(Cut.StyleRemove(annotation.end, annotation.item))
Expand Down

0 comments on commit de3f25a

Please sign in to comment.