fix logic allover
This commit is contained in:
parent
5099ae35bb
commit
239d2308c8
|
@ -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
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue