From a5e85f443e450a13b24c955823ab783fd36aa602 Mon Sep 17 00:00:00 2001 From: Karlatemp Date: Wed, 24 Mar 2021 23:59:38 +0800 Subject: [PATCH] Try fix forward message display (#1052) fix https://github.com/mamoe/mirai/issues/1052#issuecomment-805600071 --- mirai-core/src/commonMain/kotlin/QQAndroidBot.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mirai-core/src/commonMain/kotlin/QQAndroidBot.kt b/mirai-core/src/commonMain/kotlin/QQAndroidBot.kt index 7c701ac06..74b3a3630 100644 --- a/mirai-core/src/commonMain/kotlin/QQAndroidBot.kt +++ b/mirai-core/src/commonMain/kotlin/QQAndroidBot.kt @@ -208,7 +208,7 @@ internal fun RichMessage.Key.longMessage(brief: String, resId: String, timeSecon - """.trimIndent() + """.trimIndent().trim() return LongMessageInternal(template, resId) } @@ -220,7 +220,7 @@ internal fun RichMessage.Key.forwardMessage( forwardMessage: ForwardMessage, ): ForwardMessageInternal = with(forwardMessage) { val template = """ - + @@ -245,6 +245,6 @@ internal fun RichMessage.Key.forwardMessage( - """.trimIndent().replace("\n", " ") + """.trimIndent().replace("\n", " ").trim() return ForwardMessageInternal(template, resId) } \ No newline at end of file