Skip to content

Commit

Permalink
Merge pull request #483 from MohamedRejeb/1.x
Browse files Browse the repository at this point in the history
Add print paragraphs method for debugging
  • Loading branch information
MohamedRejeb authored Jan 1, 2025
2 parents d44c894 + d1b9cbe commit 2846548
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3049,6 +3049,15 @@ public class RichTextState internal constructor(
return richSpanList
}

/**
* Internal helper for testing
*/
internal fun printParagraphs() {
richParagraphList.fastForEachIndexed { i, richParagraph ->
println("Paragraph $i: $richParagraph")
}
}

/**
* Returns a copy of this [RichTextState].
* It can be used to create a snapshot of the current state.
Expand Down

0 comments on commit 2846548

Please sign in to comment.