From ea6d462d34f6061bf9a211ecec6ce8dabfb5c790 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 26 Oct 2008 17:09:14 -0700 Subject: [PATCH] Fix various regressions in cover handling when outputting to epub --- src/calibre/ebooks/epub/__init__.py | 2 +- src/calibre/ebooks/epub/from_html.py | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/calibre/ebooks/epub/__init__.py b/src/calibre/ebooks/epub/__init__.py index 4f6cc6337f..1aaac5c558 100644 --- a/src/calibre/ebooks/epub/__init__.py +++ b/src/calibre/ebooks/epub/__init__.py @@ -20,7 +20,7 @@ class DefaultProfile(object): class PRS505(DefaultProfile): flow_size = 270000 - screen_size = (600, 775) + screen_size = (590, 770) remove_special_chars = re.compile(u'[\u200b\u00ad]') diff --git a/src/calibre/ebooks/epub/from_html.py b/src/calibre/ebooks/epub/from_html.py index 107d9345c9..a7a4b8f568 100644 --- a/src/calibre/ebooks/epub/from_html.py +++ b/src/calibre/ebooks/epub/from_html.py @@ -148,11 +148,15 @@ TITLEPAGE = '''\ Cover - + - -
- cover + +
+ cover