mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix various regressions in cover handling when outputting to epub
This commit is contained in:
parent
59701a7bb8
commit
ea6d462d34
@ -20,7 +20,7 @@ class DefaultProfile(object):
|
|||||||
class PRS505(DefaultProfile):
|
class PRS505(DefaultProfile):
|
||||||
|
|
||||||
flow_size = 270000
|
flow_size = 270000
|
||||||
screen_size = (600, 775)
|
screen_size = (590, 770)
|
||||||
remove_special_chars = re.compile(u'[\u200b\u00ad]')
|
remove_special_chars = re.compile(u'[\u200b\u00ad]')
|
||||||
|
|
||||||
|
|
||||||
|
@ -148,11 +148,15 @@ TITLEPAGE = '''\
|
|||||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>Cover</title>
|
<title>Cover</title>
|
||||||
<style type="text/css" title="override_css">@page {padding: 0pt; margin:0pt}</style>
|
<style type="text/css" title="override_css">
|
||||||
|
@page {padding: 0pt; margin:0pt}
|
||||||
|
body { text-align: center; padding:0pt; margin: 0pt; }
|
||||||
|
div { margin: 0pt; padding: 0pt; }
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body style="padding: 0pt; margin: 0pt">
|
<body>
|
||||||
<div style="text-align:center">
|
<div>
|
||||||
<img style="text-align: center" src="%s" alt="cover" />
|
<img src="%s" alt="cover" />
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user