mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-06-03 20:45:22 -04:00
Add from ISBN: Ignore space around the colon used to separate identifier type from value. Fixes #2150806 [Add books by space removal when pasting from clipboard](https://bugs.launchpad.net/calibre/+bug/2150806)
This commit is contained in:
@@ -113,6 +113,7 @@ class AddFromISBN(QDialog):
|
||||
continue
|
||||
if ':' in parts[0]:
|
||||
prefix, val = parts[0].partition(':')[::2]
|
||||
prefix, val = prefix.strip(), val.strip()
|
||||
else:
|
||||
prefix, val = 'isbn', parts[0]
|
||||
path = None
|
||||
|
||||
Reference in New Issue
Block a user