Update twitter.py

Replace newlines with space, looks nicer
This commit is contained in:
factormystic 2014-01-10 20:06:40 -05:00
parent ab88f2d50d
commit 47219617d7
1 changed files with 1 additions and 1 deletions

View File

@ -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"]