From aa116a08c12eb17007cdf9106b51dcea09197f5b Mon Sep 17 00:00:00 2001
From: Denis Fomin <fominde@gmail.com>
Date: Wed, 22 Aug 2012 22:28:41 +0400
Subject: [PATCH] revert test patch. fix previous commit

---
 src/roster_window.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/roster_window.py b/src/roster_window.py
index 78c879a7f0..ce2536ee91 100644
--- a/src/roster_window.py
+++ b/src/roster_window.py
@@ -1192,10 +1192,10 @@ class RosterWindow:
 
         # add status msg, if not empty, under contact name in
         # the treeview
-        if not contact.status:
-            contact.status = ' '
         if contact.status and gajim.config.get('show_status_msgs_in_roster'):
-                status = helpers.reduce_chars_newlines(contact.status,
+            status = contact.status.strip()
+                if status != '':
+                    status = helpers.reduce_chars_newlines(status,
                         max_lines = 1)
                 # escape markup entities and make them small
                 # italic and fg color color is calcuted to be
-- 
GitLab