1
0
mirror of https://github.com/ciromattia/kcc synced 2026-05-18 21:41:49 +00:00

Revert to POSIX path - win kindlegen seems to work

This commit is contained in:
Ciro Mattia Gonano
2013-03-05 17:31:34 +01:00
parent e7e87d03cd
commit 074e31cb2e

View File

@@ -189,11 +189,10 @@ def buildOPF(profile, dstdir, title, filelist, cover=None, righttoleft=False):
+ mt + "\"/>\n") + mt + "\"/>\n")
if (options.profile == 'K4' or options.profile == 'KHD') and splitCount > 0: if (options.profile == 'K4' or options.profile == 'KHD') and splitCount > 0:
splitCountUsed = 1 splitCountUsed = 1
while (splitCountUsed <= splitCount): while splitCountUsed <= splitCount:
f.write("<item id=\"blank-page" + str(splitCountUsed) + "\" href=\"" f.write("<item id=\"blank-page" + str(splitCountUsed) +
+ os.path.join('Text', 'blank.html') "\" href=\"Text/blank.html\" media-type=\"application/xhtml+xml\"/>\n")
+ "\" media-type=\"application/xhtml+xml\"/>\n") splitCountUsed += 1
splitCountUsed += 1
f.write("</manifest>\n<spine toc=\"ncx\">\n") f.write("</manifest>\n<spine toc=\"ncx\">\n")
splitCountUsed = 1 splitCountUsed = 1
for entry in reflist: for entry in reflist: