mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-02 08:43:35 +02:00
Store: remove leading and trailing spaces when searching for title and author from menu.
This commit is contained in:
parent
7727195777
commit
033580e575
1 changed files with 2 additions and 2 deletions
|
|
@ -68,7 +68,7 @@ def _get_author(self, row):
|
|||
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 @@ def _get_title(self, row):
|
|||
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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue