From ae3894de1e967b659ef92e04c89f714f8a192958 Mon Sep 17 00:00:00 2001 From: John Schember Date: Mon, 4 Jul 2011 15:14:29 -0400 Subject: [PATCH] Store: Ignore whitespace before and after search location. --- src/calibre/gui2/store/search/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/store/search/models.py b/src/calibre/gui2/store/search/models.py index 9028acb142..1a2327fc45 100644 --- a/src/calibre/gui2/store/search/models.py +++ b/src/calibre/gui2/store/search/models.py @@ -294,6 +294,7 @@ class SearchFilter(SearchQueryParser): return self.srs def get_matches(self, location, query): + query = query.strip() location = location.lower().strip() if location == 'authors': location = 'author'