Skip to content

Commit

Permalink
Merge pull request #3356 from nextcloud/issue-3335-new-lines-removed
Browse files Browse the repository at this point in the history
Fixes newline characters not creating new lines
  • Loading branch information
AndyScherzinger authored Oct 4, 2023
2 parents 7cc0a83 + 98c6ac3 commit 17851c6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ class MessageUtils(val context: Context) {
} else if (message.renderMarkdown == false) {
SpannableString(message.message)
} else {
enrichChatMessageText(context, message.message!!, incoming, viewThemeUtils)
val newMessage = message.message!!.replace("\n", " \n", false)
enrichChatMessageText(context, newMessage, incoming, viewThemeUtils)
}
}

Expand Down Expand Up @@ -106,6 +107,7 @@ class MessageUtils(val context: Context) {
return processedMessageText
}

@Suppress("NestedBlockDepth", "LongParameterList")
private fun processMessageParameters(
themingContext: Context,
viewThemeUtils: ViewThemeUtils,
Expand Down

0 comments on commit 17851c6

Please sign in to comment.