summaryrefslogtreecommitdiffstats
path: root/bridge/helper/helper.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-04-19 22:05:00 +0200
committerWim <wim@42.be>2018-04-19 22:05:00 +0200
commit8a8b95228ce65c65212d44d7e5a64253527febbe (patch)
tree9f420cc73bd59fdae9902426195431e8a25cfecc /bridge/helper/helper.go
parent31a752fa21dcc08d5885697e72a9cad91e34f01c (diff)
downloadmatterbridge-msglm-8a8b95228ce65c65212d44d7e5a64253527febbe.tar.gz
matterbridge-msglm-8a8b95228ce65c65212d44d7e5a64253527febbe.tar.bz2
matterbridge-msglm-8a8b95228ce65c65212d44d7e5a64253527febbe.zip
Remove message newline (telegram). #399
Diffstat (limited to 'bridge/helper/helper.go')
-rw-r--r--bridge/helper/helper.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/bridge/helper/helper.go b/bridge/helper/helper.go
index 5fdc6ecc..c4ac0ae2 100644
--- a/bridge/helper/helper.go
+++ b/bridge/helper/helper.go
@@ -97,5 +97,6 @@ func RemoveEmptyNewLines(msg string) string {
lines += line + "\n"
}
}
+ lines = strings.TrimRight(lines, "\n")
return lines
}