1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

Fix path for blank page

This commit is contained in:
Ciro Mattia Gonano
2013-03-05 12:48:22 +01:00
parent 5ebf6af92a
commit ef8469add4

View File

@@ -188,7 +188,9 @@ def buildOPF(profile, dstdir, title, filelist, cover=None, righttoleft=False):
f.write("<item id=\"img_" + uniqueid + "\" href=\"" + os.path.join(folder, path[1]) + "\" media-type=\""
+ mt + "\"/>\n")
if (options.profile == 'K4' or options.profile == 'KHD') and splittedSomething:
f.write("<item id=\"blank-page\" href=\"Text\\blank.html\" media-type=\"application/xhtml+xml\"/>\n")
f.write("<item id=\"blank-page\" href=\""
+ os.path.join('Text', 'blank.html')
+ " media-type=\"application/xhtml+xml\"/>\n")
f.write("</manifest>\n<spine toc=\"ncx\">\n")
for entry in reflist:
if entry.endswith("-1"):