From 47219617d70db29d562c15b9722a7c13d6c321dd Mon Sep 17 00:00:00 2001 From: factormystic Date: Fri, 10 Jan 2014 20:06:40 -0500 Subject: [PATCH] Update twitter.py Replace newlines with space, looks nicer --- plugins/twitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/twitter.py b/plugins/twitter.py index 49e7c76..a5a53bc 100644 --- a/plugins/twitter.py +++ b/plugins/twitter.py @@ -71,7 +71,7 @@ def twitter(inp, api_key=None): except IndexError: return 'error: not that many tweets found' - text = http.unescape(tweet["text"]) + text = http.unescape(tweet["text"]).replace('\n', ' ') screen_name = tweet["user"]["screen_name"] time = tweet["created_at"]