Skip to content
Snippets Groups Projects
Commit 5b1a1927 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

apply tags to puny encoded urls. Fixes #7391

parent da80230a
No related branches found
No related tags found
No related merge requests found
......@@ -1234,7 +1234,11 @@ class ConversationTextview(gobject.GObject):
if 'url' in tags:
puny_text = puny_encode(special_text)
if not puny_text.endswith('-'):
buffer_.insert(end_iter, " (%s)" % puny_text)
puny_tags = []
if use_other_tags:
puny_tags += other_tags
puny_tags = [(ttt.lookup(t) if isinstance(t, str) else t) for t in puny_tags]
buffer_.insert_with_tags(end_iter, " (%s)" % puny_text, *puny_tags)
def print_empty_line(self):
buffer_ = self.tv.get_buffer()
......
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