Fix special text parsing

This commit is contained in:
Denis Fomin 2010-11-26 22:10:57 +03:00
parent e2b79249e9
commit 078758e5a6
1 changed files with 2 additions and 2 deletions

View File

@ -1074,7 +1074,7 @@ class ConversationTextview(gobject.GObject):
self.images.append(img)
# add with possible animation
self.tv.add_child_at_anchor(img, anchor)
elif not is_xhtml_link:
if not is_xhtml_link:
if special_text.startswith('www.') or \
special_text.startswith('ftp.') or \
text_is_valid_uri:
@ -1086,7 +1086,7 @@ class ConversationTextview(gobject.GObject):
elif gajim.interface.sth_at_sth_dot_sth_re.match(special_text):
# it's a JID or mail
tags.append('sth_at_sth')
elif special_text.startswith('*'): # it's a bold text
if special_text.startswith('*'): # it's a bold text
tags.append('bold')
if special_text[1] == '/' and special_text[-2] == '/' and\
len(special_text) > 4: # it's also italic