This commit is contained in:
Kovid Goyal 2011-02-13 16:58:15 -07:00
parent b000d470ed
commit a5cdad2705

View File

@ -210,9 +210,11 @@ class TXTInput(InputFormatPlugin):
oeb = html_input.convert(open(htmlfile.name, 'rb'), options, 'html', log, oeb = html_input.convert(open(htmlfile.name, 'rb'), options, 'html', log,
{}) {})
# Add images from from txtz archive to oeb. # Add images from from txtz archive to oeb.
for image, mime in images: # Disabled as the conversion pipeline adds unmanifested items that are
id, href = oeb.manifest.generate(id='image', href=image) # referred to in the content automatically
oeb.manifest.add(id, href, mime) #for image, mime in images:
# id, href = oeb.manifest.generate(id='image', href=image)
# oeb.manifest.add(id, href, mime)
options.debug_pipeline = odi options.debug_pipeline = odi
os.remove(htmlfile.name) os.remove(htmlfile.name)