prettify xml stanzas in XML console

This commit is contained in:
Yann Leboulanger 2005-11-14 10:14:55 +00:00
parent 6a432bbb67
commit f5bd526129
1 changed files with 2 additions and 1 deletions

View File

@ -1163,7 +1163,8 @@ class XMLConsoleWindow:
if end_rect.y <= (visible_rect.y + visible_rect.height):
at_the_end = True
end_iter = buffer.get_end_iter()
buffer.insert_with_tags_by_name(end_iter, stanza + '\n\n', kind)
buffer.insert_with_tags_by_name(end_iter, stanza.replace('><', '>\n<') + \
'\n\n', kind)
if at_the_end:
gobject.idle_add(self.scroll_to_end)