Skip to content

Commit a69048b

Browse files
committed
ask_world better formatting
1 parent feb8d26 commit a69048b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/kotlin/dev/storozhenko/familybot/feature/askworld/executors/AskWorldInitialExecutor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ class AskWorldInitialExecutor(
238238
val messagePrefix = dictionary.get(Phrase.ASK_WORLD_QUESTION_FROM_CHAT, chatToSend.key())
239239
val boldChatName = currentChat.name.boldNullable()
240240
val italicMessage = question.italic()
241-
return "$messagePrefix $boldChatName: $italicMessage"
241+
return "$messagePrefix $boldChatName:\n\n$italicMessage"
242242
}
243243

244244
private fun formatPollMessage(currentChat: Chat, chatToSend: Chat): String {

src/main/kotlin/dev/storozhenko/familybot/feature/askworld/executors/AskWorldReceiveReplyExecutor.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package dev.storozhenko.familybot.feature.askworld.executors
33
import dev.storozhenko.familybot.BotConfig
44
import dev.storozhenko.familybot.common.extensions.boldNullable
55
import dev.storozhenko.familybot.common.extensions.italic
6-
76
import dev.storozhenko.familybot.core.executors.Configurable
87
import dev.storozhenko.familybot.core.executors.Executor
98
import dev.storozhenko.familybot.core.keyvalue.EasyKeyValueService
@@ -319,7 +318,7 @@ class AskWorldReceiveReplyExecutor(
319318
SendMessage(
320319
chatIdToReply,
321320
"$answerTitle ${context.chat.name.boldNullable()} " +
322-
"от ${context.user.getGeneralName()} на вопрос \"$questionTitle\": ${reply.italic()}",
321+
"от ${context.user.getGeneralName()} на вопрос \"$questionTitle\":\n\n${reply.italic()}",
323322
).apply {
324323
enableHtml(true)
325324
},

0 commit comments

Comments
 (0)