diff --git a/src/calibre/devices/usbms/books.py b/src/calibre/devices/usbms/books.py index a9c980c31b..ba005c4e6d 100644 --- a/src/calibre/devices/usbms/books.py +++ b/src/calibre/devices/usbms/books.py @@ -139,9 +139,9 @@ class CollectionsBookList(BookList): ca = [] for c in collection_attributes: if c.startswith('aba:') and c[4:]: - all_by_author = c[4:] + all_by_author = c[4:].strip() elif c.startswith('abt:') and c[4:]: - all_by_title = c[4:] + all_by_title = c[4:].strip() else: ca.append(c.lower()) collection_attributes = ca