From e83f0f3815cdd70a60df0e419a5fe541ce4fe0a0 Mon Sep 17 00:00:00 2001 From: Gaetan Delannay Date: Wed, 12 Jun 2013 12:57:42 +0200 Subject: [PATCH] [gen] Bugfix in the way to index text fields containing line breaks. --- gen/indexer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/indexer.py b/gen/indexer.py index 21c5432..cb607df 100644 --- a/gen/indexer.py +++ b/gen/indexer.py @@ -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 :