Skip to content

Commit

Permalink
bug fixed with split rt's
Browse files Browse the repository at this point in the history
  • Loading branch information
Nic0 committed Jun 3, 2011
1 parent c8e9284 commit 0e583b0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tyrs/uiTyrs.py
Expand Up @@ -157,7 +157,7 @@ def updateTimeline (self, buffer):

# TODO does it realy need to display the timeline here ?!
# DO NOT decomment it, unless the loop with the displayTimeline and empty newstatuses
# call here for checking (needed for start, and changing buffer, retrieves tweets in
# call here for checking (needed for start, and changing buffer, retrieves tweets in
# this case
# self.displayTimeline()
except:
Expand Down Expand Up @@ -367,15 +367,14 @@ def displayText (self, text, panel, status):
'''
# Some tweets have '\n' thats break the layout
text = text.replace('\n', ' ')

if status.rt:
text = text.split(':')[1:]
text = ':'.join(text)

if hasattr(status, 'retweeted_status'):
if hasattr(status.retweeted_status, 'text') \
and len(status.retweeted_status.text) > 0:
text = status.retweeted_status.text
else:
text = text.split(':')[1:]
text = ':'.join(text)

words = text.split(' ')
curent_x = 2
Expand Down

0 comments on commit 0e583b0

Please sign in to comment.