Tweaks to cover-related EPUB stuff

Helps with the validation errors noted in #22.
This commit is contained in:
Domenic Denicola 2020-12-31 14:13:37 -05:00
commit c6f7460b82
3 changed files with 9 additions and 5 deletions

View file

@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Cover</title>
<style>
<style type="text/css">
body {
text-align: center;
margin: 0;
@ -17,6 +17,8 @@
</style>
</head>
<body>
<img src="cover.jpg" alt=""/>
<div>
<img src="cover.jpg" alt=""/>
</div>
</body>
</html>

View file

@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Cover</title>
<style>
<style type="text/css">
body {
text-align: center;
margin: 0;
@ -17,6 +17,8 @@
</style>
</head>
<body>
<img src="cover.jpg" alt=""/>
<div>
<img src="cover.jpg" alt=""/>
</div>
</body>
</html>

View file

@ -56,7 +56,7 @@ function writeOPF(chapters, contentPath, coverFiles, bookInfo) {
<manifest>
<item id="ncx" href="${NCX_FILENAME}" media-type="application/x-dtbncx+xml"/>
<item id="cover" href="${coverFiles.xhtml}" media-type="application/xhtml+xml"/>
<item id="cover-image" properties="cover-image" href="${coverFiles.image}" media-type="${coverFiles.imageMimeType}"/>
<item id="cover-image" href="${coverFiles.image}" media-type="${coverFiles.imageMimeType}"/>
${manifestChapters}
</manifest>