fix logic allover

This commit is contained in:
Nikos Kouremenos 2007-01-06 10:20:13 +00:00
parent 5099ae35bb
commit 239d2308c8
2 changed files with 2 additions and 2 deletions

View File

@ -418,7 +418,7 @@ class ConversationTextview:
if tags: # we clicked on sth special (it can be status message too) if tags: # we clicked on sth special (it can be status message too)
for tag in tags: for tag in tags:
tag_name = tag.get_property('name') 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 return True # we block normal context menu
# we check if sth was selected and if it was we assign # we check if sth was selected and if it was we assign

View File

@ -508,7 +508,7 @@ class HtmlHandler(xml.sax.handler.ContentHandler):
if id_: if id_:
tag = self.textbuf.create_tag(id_) tag = self.textbuf.create_tag(id_)
else: 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())]: for attr, val in [item.split(':', 1) for item in style.split(';') if len(item.strip())]:
attr = attr.strip().lower() attr = attr.strip().lower()
val = val.strip() val = val.strip()