Oops, those should have been raw strings

This commit is contained in:
Anna 2010-04-11 00:22:37 -04:00
parent cfbae74cff
commit 410a0ff69d

View File

@ -212,7 +212,7 @@ class TweetBox(gtk.VBox):
# and the text
new_text = status.text
new_text = re.sub('&([^;]*?)( |$)', '&\1\2', new_text)
new_text = re.sub(r'&([^;]*?)( |$)', r'&\1\2', new_text)
if gtk.pygtk_version[0] > 2 or (gtk.pygtk_version[0] == 2 and gtk.pygtk_version[1] >= 18):
new_text = re.sub(r"(http://.*?)( |$)", r'<a href="\1">\1</a>\2', new_text)
self.text.set_markup(new_text)