changeset 7f9aa1be8e3b in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=7f9aa1be8e3b description: Fix special text parsing
diffstat:
src/conversation_textview.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 814fd9d671b5 -r 7f9aa1be8e3b src/conversation_textview.py --- a/src/conversation_textview.py Fri Nov 26 17:55:25 2010 +0300 +++ b/src/conversation_textview.py Fri Nov 26 22:10:57 2010 +0300 @@ -1076,7 +1076,7 @@ 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: @@ -1088,7 +1088,7 @@ 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