diff options
author | Wim <wim@42.be> | 2018-04-19 22:05:00 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2018-04-19 22:05:00 +0200 |
commit | 8a8b95228ce65c65212d44d7e5a64253527febbe (patch) | |
tree | 9f420cc73bd59fdae9902426195431e8a25cfecc | |
parent | 31a752fa21dcc08d5885697e72a9cad91e34f01c (diff) | |
download | matterbridge-msglm-8a8b95228ce65c65212d44d7e5a64253527febbe.tar.gz matterbridge-msglm-8a8b95228ce65c65212d44d7e5a64253527febbe.tar.bz2 matterbridge-msglm-8a8b95228ce65c65212d44d7e5a64253527febbe.zip |
Remove message newline (telegram). #399
-rw-r--r-- | bridge/helper/helper.go | 1 |
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 } |