Removed newlines from link to untranslated message.

This commit is contained in:
Patrick Connolly
2018-10-23 17:39:48 +08:00
parent 3b0a91d3ee
commit 5697772ee3

View File

@@ -296,6 +296,7 @@ func (b *Bslack) createTranslationAttach(msg config.Message) slack.Attachment {
if len(msg.TranslationSrcMsg.Text) > previewCharCount {
untranslatedTextPreview = untranslatedTextPreview[:previewCharCount]+"..."
}
untranslatedTextPreview = strings.Replace(untranslatedTextPreview, "\n", " ", -1)
ch, err := b.getChannelByName(msg.TranslationSrcMsg.Channel)
time := strings.Split(msg.TranslationSrcMsg.ID, " ")[1]
params := slack.PermalinkParameters{