From 239d2308c8e220dce11c8c9cb254056cdb43b8ea Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sat, 6 Jan 2007 10:20:13 +0000 Subject: [PATCH] fix logic allover --- src/conversation_textview.py | 2 +- src/htmltextview.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conversation_textview.py b/src/conversation_textview.py index 683629326..6a0004ec2 100644 --- a/src/conversation_textview.py +++ b/src/conversation_textview.py @@ -418,7 +418,7 @@ class ConversationTextview: if tags: # we clicked on sth special (it can be status message too) for tag in tags: tag_name = tag.get_property('name') - if tag_name is not None and tag_name in ('url', 'mail'): + if tag_name in ('url', 'mail'): return True # we block normal context menu # we check if sth was selected and if it was we assign diff --git a/src/htmltextview.py b/src/htmltextview.py index 12dfd51f1..e26b49252 100644 --- a/src/htmltextview.py +++ b/src/htmltextview.py @@ -508,7 +508,7 @@ class HtmlHandler(xml.sax.handler.ContentHandler): if id_: tag = self.textbuf.create_tag(id_) else: - tag = self.textbuf.create_tag('span with no id') + tag = self.textbuf.create_tag() # we create anonymous tag for attr, val in [item.split(':', 1) for item in style.split(';') if len(item.strip())]: attr = attr.strip().lower() val = val.strip()