diff --git a/richeditor-compose/src/commonMain/kotlin/com/mohamedrejeb/richeditor/model/RichTextState.kt b/richeditor-compose/src/commonMain/kotlin/com/mohamedrejeb/richeditor/model/RichTextState.kt index 6a78ef60..b0e8d038 100644 --- a/richeditor-compose/src/commonMain/kotlin/com/mohamedrejeb/richeditor/model/RichTextState.kt +++ b/richeditor-compose/src/commonMain/kotlin/com/mohamedrejeb/richeditor/model/RichTextState.kt @@ -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.