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:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user