diff --git a/src/calibre/ebooks/metadata/fictionwise.py b/src/calibre/ebooks/metadata/fictionwise.py index 48dac131cc..96638a1788 100644 --- a/src/calibre/ebooks/metadata/fictionwise.py +++ b/src/calibre/ebooks/metadata/fictionwise.py @@ -233,7 +233,7 @@ class ResultList(list): description = self.reimg.sub('', description.group("desc")) description = self.recomment.sub('', description) description = self.resanitize.sub('', sanitize_comments_html(description)) - return _('SUMMARY:\n %s') % re.sub(r'\n\s+
','\n', description) + return _('SUMMARY:\n%s') % re.sub(r'\n\s+','\n', description) def get_publisher(self, entry): publisher = self.output_entry(entry.xpath('./p')[1]) diff --git a/src/calibre/ebooks/metadata/google_books.py b/src/calibre/ebooks/metadata/google_books.py index fd18f080a0..41b2edfefb 100644 --- a/src/calibre/ebooks/metadata/google_books.py +++ b/src/calibre/ebooks/metadata/google_books.py @@ -146,7 +146,7 @@ class Query(object): # print etree.tostring(feed, pretty_print=True) total = int(total_results(feed)[0].text) - nbresultstoget = total if total