From 033580e575ff5319f89d68c2dba1dfe822a28b7e Mon Sep 17 00:00:00 2001 From: John Schember Date: Tue, 17 May 2011 20:00:42 -0400 Subject: [PATCH] Store: remove leading and trailing spaces when searching for title and author from menu. --- src/calibre/gui2/actions/store.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/actions/store.py b/src/calibre/gui2/actions/store.py index 2493a617ac..c8507e851c 100644 --- a/src/calibre/gui2/actions/store.py +++ b/src/calibre/gui2/actions/store.py @@ -68,7 +68,7 @@ class StoreAction(InterfaceAction): a = ' '.join(a) corrected_authors.append(a) - return ' & '.join(corrected_authors) + return ' & '.join(corrected_authors).strip() def search_author(self): row = self._get_selected_row() @@ -87,7 +87,7 @@ class StoreAction(InterfaceAction): mi = self.gui.current_view().model().get_book_display_info(row) title = mi.title - return title + return title.strip() def search_title(self): row = self._get_selected_row()