Telegram: put newline after backticks for pre

This commit is contained in:
ValdikSS
2022-03-16 10:33:46 +03:00
parent be52d7c440
commit ee1b462930

View File

@@ -516,7 +516,7 @@ func (b *Btelegram) handleEntities(rmsg *config.Message, message *tgbotapi.Messa
if e.Type == "pre" {
offset := e.Offset + indexMovedBy
rmsg.Text = string(asRunes[:offset]) + "```\n" + string(asRunes[offset:offset+e.Length]) + "\n```" + string(asRunes[offset+e.Length:])
rmsg.Text = string(asRunes[:offset]) + "```\n" + string(asRunes[offset:offset+e.Length]) + "```\n" + string(asRunes[offset+e.Length:])
indexMovedBy += 8
}