[gen] Bugfix in the way to index text fields containing line breaks.

This commit is contained in:
Gaetan Delannay 2013-06-12 12:57:42 +02:00
parent 06039b300c
commit e83f0f3815

View file

@ -74,7 +74,7 @@ def splitIntoWords(text):
words). Words of a single char are ignored, excepted digits which are
always kept. Duplicate words are removed (result is a set and not a
list).'''
res = text.split(' ')
res = text.split()
# Remove tokens of a single char (excepted if this char is a digit).
i = len(res)-1
while i > -1 :