chiark
/
gitweb
/
~matthewv
/
irc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
109c1fa
)
trim \n from tweet texts
author
Matthew Vernon
<matthewv@chiark.greenend.org.uk>
Thu, 23 Jun 2011 11:39:39 +0000
(12:39 +0100)
committer
Matthew Vernon
<matthewv@chiark.greenend.org.uk>
Thu, 23 Jun 2011 11:39:39 +0000
(12:39 +0100)
commands.py
patch
|
blob
|
history
diff --git
a/commands.py
b/commands.py
index 114f7b0e65a705832f08c068705c8e65a6ad1368..f323b00fb91e108abcc3c16bab76a8a64aa4f179 100644
(file)
--- a/
commands.py
+++ b/
commands.py
@@
-413,6
+413,7
@@
def getTweet(urlstring,twitapi):
tweeter_screen = status.user.screen_name.encode('UTF-8', 'replace')
tweeter_name = status.user.name.encode('UTF-8', 'replace')
tweetText = status.text.encode('UTF-8', 'replace')
+ tweetText = tweetText.replace('\n',' ')
stringout = "tweet by %s (%s): %s" %(tweeter_screen,tweeter_name,tweetText)
except twitter.TwitterError:
terror = sys.exc_info()