diff --git a/app/src/main/java/com/orgzly/android/ui/notes/NoteContent.kt b/app/src/main/java/com/orgzly/android/ui/notes/NoteContent.kt index 00d65359f..0c4ab9f85 100644 --- a/app/src/main/java/com/orgzly/android/ui/notes/NoteContent.kt +++ b/app/src/main/java/com/orgzly/android/ui/notes/NoteContent.kt @@ -20,7 +20,7 @@ sealed class NoteContent { companion object { - private fun lineIsTable(raw: String) = raw.length > 0 && raw.get(0) == '|' + private fun lineIsTable(raw: String) = raw.isNotEmpty() && raw[0] == '|' /** * Converts the provided raw string (with embedded newlines) into a list of sections of