From f87ffc88f646a552e97375f716ecaf1eae0ec2ff Mon Sep 17 00:00:00 2001 From: Nikola Kotur Date: Mon, 13 Nov 2017 12:08:26 +0100 Subject: [PATCH] Fixed pandoc invocation while importing feeds Newer version of `pandoc` normalize by default. If this legacy option is present, `pandoc` fails to run. --- pelican/tools/pelican_import.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pelican/tools/pelican_import.py b/pelican/tools/pelican_import.py index 8d252536..4d63ae18 100755 --- a/pelican/tools/pelican_import.py +++ b/pelican/tools/pelican_import.py @@ -728,8 +728,7 @@ def fields2pelican( fp.write(new_content) parse_raw = '--parse-raw' if not strip_raw else '' - cmd = ('pandoc --normalize {0} --from=html' - ' --to={1} -o "{2}" "{3}"') + cmd = ('pandoc --from=html --to={1} -o "{2}" "{3}"') cmd = cmd.format(parse_raw, out_markup, out_filename, html_filename)