klint cleaning

This commit is contained in:
Valere 2019-11-15 11:40:05 +01:00 committed by Benoit Marty
parent 6bd7257cf2
commit 2a4cdec020
2 changed files with 8 additions and 7 deletions

View File

@ -70,7 +70,8 @@ internal class LocalEchoEventFactory @Inject constructor(@UserId private val use
private fun createTextContent(text: CharSequence, autoMarkdown: Boolean): TextContent {
if (autoMarkdown) {
val source = transformPills(text,"[%2\$s](https://matrix.to/#/%1\$s)") ?: text.toString()
val source = transformPills(text, "[%2\$s](https://matrix.to/#/%1\$s)")
?: text.toString()
val document = parser.parse(source)
val htmlText = renderer.render(document)