diff options
author | Tomeu Vizoso <tomeu@sugarlabs.org> | 2009-07-01 09:52:26 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@sugarlabs.org> | 2009-07-01 09:52:26 (GMT) |
commit | db8beceeae50f2f7e9c7e619d3f90c703a232610 (patch) | |
tree | 72faaeed0eeb7c3fa17b1e7f2357fa9b38cc598e | |
parent | 38c28ce52f366bd9fcd91f2abca5b9fe0313e474 (diff) |
Should be strip(), not trim()
-rw-r--r-- | src/carquinyol/indexstore.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/carquinyol/indexstore.py b/src/carquinyol/indexstore.py index e4f2263..0f2b982 100644 --- a/src/carquinyol/indexstore.py +++ b/src/carquinyol/indexstore.py @@ -86,7 +86,7 @@ class IndexStore(object): document.add_value(_VALUE_UID, uid) document.add_value(_VALUE_TIMESTAMP, str(properties['timestamp'])) - document.add_value(_VALUE_TITLE, properties.get('title', '').trim()) + document.add_value(_VALUE_TITLE, properties.get('title', '').strip()) term_generator = xapian.TermGenerator() |