Skip to content
Snippets Groups Projects
Commit 239d2308 authored by nkour's avatar nkour
Browse files

fix logic allover

parent 5099ae35
No related branches found
No related tags found
No related merge requests found
......@@ -418,7 +418,7 @@ def on_textview_button_press_event(self, widget, event):
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
......
......@@ -508,7 +508,7 @@ def _begin_span(self, style, tag=None, id_=None):
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()
......
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