From: Robert Błaut Date: Thu, 27 Feb 2014 11:43:20 +0000 (+0100) Subject: [epub] fix for calibre warning - cover does not need linear=no attribute X-Git-Tag: 1.7~99^2~22 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/9649d7ea92c5caa77975cf2e3405af5fdf7e982f?ds=inline;hp=--cc [epub] fix for calibre warning - cover does not need linear=no attribute Calibre said „There are items marked as non-linear in the . These will be displayed in random order by different ebook readers. Some will ignore the non-linear attribute, some will display them at the end or the beginning of the book and some will fail to display them at all. Instead of using non-linear items simply place the items in the order you want them to be displayed.” --- 9649d7ea92c5caa77975cf2e3405af5fdf7e982f diff --git a/librarian/epub.py b/librarian/epub.py index 81dcb6e..6377526 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -499,7 +499,7 @@ def transform(wldoc, verbose=False, '')) manifest.append(etree.fromstring( '' % (cover_name, bound_cover.mime_type()))) - spine.insert(0, etree.fromstring('')) + spine.insert(0, etree.fromstring('')) opf.getroot()[0].append(etree.fromstring('')) guide.append(etree.fromstring(''))