From: Matthew Vernon Date: Thu, 16 Jun 2016 14:49:11 +0000 (+0100) Subject: Restore correct handling of multi-line tweets X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~matthewv/git?p=irc.git;a=commitdiff_plain;h=c3646899398eba049737e7effbf5a47bcd46b3aa Restore correct handling of multi-line tweets --- diff --git a/commands.py b/commands.py index 8e3bfe6..538de09 100755 --- a/commands.py +++ b/commands.py @@ -577,6 +577,7 @@ def getTweet(urlstring,twitapi): tweetText = tweetText.replace(">",">") tweetText = tweetText.replace("<","<") tweetText = tweetText.replace("&","&") + tweetText = tweetText.replace("\n"," ") stringout = "tweet by %s (%s): %s" %(tweeter_screen,tweeter_name,tweetText) except twitter.TwitterError: terror = sys.exc_info()