From d64e86c710dc24d6f7b4834ab8fc4cd640f4c55d Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Thu, 15 Nov 2012 14:32:21 -0500 Subject: [PATCH] Playing with padding for fedmsg-tweet. --- fedmsg/commands/tweet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fedmsg/commands/tweet.py b/fedmsg/commands/tweet.py index 3e63dafc..656a44aa 100644 --- a/fedmsg/commands/tweet.py +++ b/fedmsg/commands/tweet.py @@ -98,7 +98,7 @@ def _post_to_api(api, message): if link: link = bitly.shorten(longUrl=link)['url'] - message = (message[:138] + " ")[:139 - len(link)] + link + message = message[:138 - len(link)] + " " + link else: message = message[:140]