Commit 2514669d authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

print subject from received messages correctly. Fixes #8042

parent d73ac6f1
......@@ -1216,10 +1216,11 @@ def print_special_text(self, special_text, other_tags, graphics=True,
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, iter_=None):
buffer_ =
end_iter = buffer_.get_end_iter()
buffer_.insert_with_tags_by_name(end_iter, '\n', 'eol')
if not iter_:
iter_ = buffer_.get_end_iter()
buffer_.insert_with_tags_by_name(iter_, '\n', 'eol')
self.just_cleared = False
def print_conversation_line(self, text, jid, kind, name, tim,
......@@ -1446,7 +1447,7 @@ def print_subject(self, subject, iter_=None):
end_iter = buffer_.get_end_iter()
buffer_.insert(end_iter, subject)
def print_real_text(self, text, text_tags=[], name=None, xhtml=None,
graphics=True, iter_=None):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment