Skip to content
Permalink
Browse files
Fix #3171 — Pandoc compiler was using deleted argument
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Sep 30, 2018
1 parent 1a44901 commit 730d0fb96878fc4f75daffd79155b9297ce8b0ac
Showing with 2 additions and 1 deletion.
  1. +1 −0 CHANGES.txt
  2. +1 −1 nikola/plugins/compile/pandoc.py
@@ -10,6 +10,7 @@ Features
Bugfixes
--------

* Pandoc compiler was passing deleted argument (Issue #3171)
* Make ``nikola version --check`` work again (Issue #3170)
* Set logging level for reST to warning in order to limit noise
* Fix docinfo removal for sites that use reST docinfo metadata
@@ -55,7 +55,7 @@ def compile(self, source, dest, is_two_file=True, post=None, lang=None):
try:
subprocess.check_call(['pandoc', '-o', dest, source] + self.site.config['PANDOC_OPTIONS'])
with open(dest, 'r', encoding='utf-8') as inf:
output, shortcode_deps = self.site.apply_shortcodes(inf.read(), with_dependencies=True)
output, shortcode_deps = self.site.apply_shortcodes(inf.read())
with open(dest, 'w', encoding='utf-8') as outf:
outf.write(output)
if post is None:

0 comments on commit 730d0fb

Please sign in to comment.