Oops, those should have been raw strings
This commit is contained in:
parent
cfbae74cff
commit
410a0ff69d
|
@ -212,7 +212,7 @@ class TweetBox(gtk.VBox):
|
||||||
|
|
||||||
# and the text
|
# and the text
|
||||||
new_text = status.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):
|
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)
|
new_text = re.sub(r"(http://.*?)( |$)", r'<a href="\1">\1</a>\2', new_text)
|
||||||
self.text.set_markup(new_text)
|
self.text.set_markup(new_text)
|
||||||
|
|
Reference in New Issue
Block a user