From 25d4f6d349acfd3dc8bebd2469dd84cde3b5927d Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Fri, 16 Dec 2016 14:08:29 +0100 Subject: [PATCH 1/1] epub default cover --- librarian/epub.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/librarian/epub.py b/librarian/epub.py index c126e78..f63826f 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -451,6 +451,8 @@ def transform(wldoc, verbose=False, style=None, html_toc=False, style = get_resource('epub/style.css') zip.write(style, os.path.join('OPS', 'style.css')) + if cover is None: + cover = WLCover if cover: if cover is True: cover = WLCover -- 2.20.1