From db8beceeae50f2f7e9c7e619d3f90c703a232610 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Wed, 01 Jul 2009 09:52:26 +0000 Subject: Should be strip(), not trim() --- 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() -- cgit v0.9.1