author | Stephanie Marcu <stephanie.marcu@logilab.fr> |
Mon, 23 Feb 2009 16:59:18 +0100 | |
changeset 927 | bfcc610c3d5e |
parent 926 | 6d3d693c0ad5 |
child 932 | 057ddecf44e9 |
common/uilib.py | file | annotate | diff | comparison | revisions |
--- 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