changeset 8b27ee155e34 in /home/hg/repos/gajim
branches: details:http://hg.gajim.org/gajim?cmd=changeset;node=8b27ee155e34 description: apply tags to puny encoded urls. Fixes #7391
diffstat:
src/conversation_textview.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r ffc9d25174bf -r 8b27ee155e34 src/conversation_textview.py --- a/src/conversation_textview.py Wed Jul 24 10:06:58 2013 +0200 +++ b/src/conversation_textview.py Wed Jul 24 12:39:07 2013 +0200 @@ -1234,7 +1234,11 @@ 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()