Fix various regressions in cover handling when outputting to epub

This commit is contained in:
Kovid Goyal 2008-10-26 17:09:14 -07:00
parent 59701a7bb8
commit ea6d462d34
2 changed files with 9 additions and 5 deletions

View File

@ -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]')

View File

@ -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>