mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Store: remove leading and trailing spaces when searching for title and author from menu.
This commit is contained in:
parent
7727195777
commit
033580e575
@ -68,7 +68,7 @@ class StoreAction(InterfaceAction):
|
|||||||
a = ' '.join(a)
|
a = ' '.join(a)
|
||||||
corrected_authors.append(a)
|
corrected_authors.append(a)
|
||||||
|
|
||||||
return ' & '.join(corrected_authors)
|
return ' & '.join(corrected_authors).strip()
|
||||||
|
|
||||||
def search_author(self):
|
def search_author(self):
|
||||||
row = self._get_selected_row()
|
row = self._get_selected_row()
|
||||||
@ -87,7 +87,7 @@ class StoreAction(InterfaceAction):
|
|||||||
mi = self.gui.current_view().model().get_book_display_info(row)
|
mi = self.gui.current_view().model().get_book_display_info(row)
|
||||||
title = mi.title
|
title = mi.title
|
||||||
|
|
||||||
return title
|
return title.strip()
|
||||||
|
|
||||||
def search_title(self):
|
def search_title(self):
|
||||||
row = self._get_selected_row()
|
row = self._get_selected_row()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user