# HG changeset patch # User Stephanie Marcu # Date 1235404758 -3600 # Node ID bfcc610c3d5e0134f9f5509c97fa5976aa42a9f6 # Parent 6d3d693c0ad592511b93acfd39770a4632a722e3 text_cut must return unicode not string diff -r 6d3d693c0ad5 -r bfcc610c3d5e common/uilib.py --- 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