From f5bd52612925eb92375a66b0989f10f590245f70 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 14 Nov 2005 10:14:55 +0000 Subject: [PATCH] prettify xml stanzas in XML console --- src/dialogs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dialogs.py b/src/dialogs.py index 90753bf94..d3d8b1448 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -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)