Skip to content
Snippets Groups Projects
Commit 078758e5 authored by Dicson's avatar Dicson
Browse files

Fix special text parsing

parent e2b79249
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment