diff frontends/sortilege_old/chat.py @ 587:952322b1d490

Remove trailing whitespaces.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 18 Jan 2013 17:55:34 +0100
parents 2a072735e459
children 84a6e83157c2
line wrap: on
line diff
--- a/frontends/sortilege_old/chat.py	Fri Jan 18 17:55:27 2013 +0100
+++ b/frontends/sortilege_old/chat.py	Fri Jan 18 17:55:34 2013 +0100
@@ -40,7 +40,7 @@
 class Chat(Window, QuickChat):
 
     def __init__(self, to_id, host):
-        QuickChat.__init__(self, to_id, host) 
+        QuickChat.__init__(self, to_id, host)
         self.__parent=host.stdscr
         self.to_id=JID(to_id)
         self.content=[]
@@ -88,7 +88,7 @@
                 att_header=curses.color_pair(1)
             else:
                 att_header=curses.color_pair(2)
-            
+
             while (msg):
                 if part==0:
                     hd=header
@@ -105,7 +105,7 @@
                     next = max + 1  #we skip the LF
                 else:
                     next = max
-                    
+
                 content.insert(part,[att,hd, msg[:max]])
                 msg=msg[next:]   #we erase treated part
                 part=part+1
@@ -116,7 +116,7 @@
 
         if self.__scollIdx>0 and len(content)<self.rHeight+self.__scollIdx:
             self.__scollIdx=abs(len(content)-self.rHeight)  #all the log fit on the screen, we must stop here
-            
+
         idx=0
         for line in content[-self.rHeight-self.__scollIdx : -self.__scollIdx or None]:
             self.addYXStr(idx, 0, line[1], line[0])
@@ -124,12 +124,12 @@
             idx=idx+1
 
         self.noutrefresh()
-    
+
     def scrollIdxUp(self):
         """increment scroll index"""
         self.__scollIdx = self.__scollIdx + 1
         self.update()
-    
+
     def scrollIdxDown(self):
         """decrement scroll index"""
         if self.__scollIdx > 0:
@@ -144,7 +144,7 @@
                 return
         self.content.append([timestamp,jid.short,msg])
         self.update()
-    
+
     def handleKey(self, k):
         if k == C('p'):
             self.scrollIdxUp()