[Scipy-svn] r2680 - trunk/Lib/sandbox/timeseries

scipy-svn at scipy.org scipy-svn at scipy.org
Mon Feb 5 17:33:35 EST 2007


Author: mattknox_ca
Date: 2007-02-05 16:33:32 -0600 (Mon, 05 Feb 2007)
New Revision: 2680

Modified:
   trunk/Lib/sandbox/timeseries/reportlib.py
Log:
changed nls behaviour in wrap_onspace

Modified: trunk/Lib/sandbox/timeseries/reportlib.py
===================================================================
--- trunk/Lib/sandbox/timeseries/reportlib.py	2007-02-05 21:26:17 UTC (rev 2679)
+++ trunk/Lib/sandbox/timeseries/reportlib.py	2007-02-05 22:33:32 UTC (rev 2680)
@@ -454,14 +454,11 @@
     
         width = self.width
         nls = self.nls
-    
-        if nls[-1] == '\n': line_end = nls
-        else:               line_end = nls + '\n'
 
         def break_or_space(line, word, width):
             temp_idx = (len(line[line.rfind(nls)+1:]) + len(word.split(nls,1)[0]) >= width)
             if temp_idx:
-                return line_end
+                return nls
             else:
                 return ' '
 




More information about the Scipy-svn mailing list