apply tags to puny encoded urls. Fixes #7391

This commit is contained in:
Yann Leboulanger 2013-07-24 12:39:07 +02:00
parent da80230a01
commit 5b1a1927e4
1 changed files with 5 additions and 1 deletions

View File

@ -1234,7 +1234,11 @@ class ConversationTextview(gobject.GObject):
if 'url' in tags: if 'url' in tags:
puny_text = puny_encode(special_text) puny_text = puny_encode(special_text)
if not puny_text.endswith('-'): 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): def print_empty_line(self):
buffer_ = self.tv.get_buffer() buffer_ = self.tv.get_buffer()