The intermediate .html file has to be removed during the import process.

This commit is contained in:
Ranjhith Kalisamy 2011-10-30 23:04:24 +05:30
commit 5b7cd45668

View file

@ -217,7 +217,7 @@ def fields2pelican(fields, out_markup, output_path, dircat=False):
os.system('pandoc --normalize --reference-links --from=html --to=%s -o "%s" "%s"' % (out_markup, out_filename, html_filename))
#os.remove(html_filename)
os.remove(html_filename)
with open(out_filename, 'r', encoding='utf-8') as fs:
content = fs.read()