From 2a3ac7a89db53cb79bccc0c30c786c3f8ce3aa2c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 3 Jun 2005 21:35:46 +0000 Subject: [PATCH] we print an empty line only if we restore line(s) --- src/tabbed_chat_window.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tabbed_chat_window.py b/src/tabbed_chat_window.py index bb27d7479..a54521edc 100644 --- a/src/tabbed_chat_window.py +++ b/src/tabbed_chat_window.py @@ -190,7 +190,6 @@ class Tabbed_chat_window(chat.Chat): #restore previous conversation self.restore_conversation(user.jid) - self.print_empty_line(user.jid) #print queued messages @@ -363,3 +362,6 @@ class Tabbed_chat_window(chat.Chat): text = ':'.join(msg[2:])[0:-1] #remove the latest \n self.print_conversation_line(text, jid, kind, name, tim, ['small'], ['small', 'grey'], ['small', 'grey']) + + if len(lines): + self.print_empty_line(jid)