common/uilib.py
changeset 927 bfcc610c3d5e
parent 525 bd4e03297cf0
child 985 6a25c58a1c23
child 1157 81a383cdda5c
--- a/common/uilib.py	Mon Feb 23 16:25:59 2009 +0100
+++ b/common/uilib.py	Mon Feb 23 16:59:18 2009 +0100
@@ -190,7 +190,7 @@
     if text is None:
         return u''
     words = text.split()
-    text = ' '.join(words) # normalize spaces
+    text = u' '.join(words) # normalize spaces
     minlength = len(' '.join(words[:nbwords]))
     textlength = text.find('.', minlength) + 1
     if textlength == 0: # no point found