PDF improvements, including syntax highlighting

This commit is contained in:
mDuo13
2016-03-18 19:13:10 -07:00
parent dddaad56b1
commit 1296f0739d
5 changed files with 33 additions and 6 deletions

View File

@@ -437,7 +437,7 @@ def make_pdf(outfile, target=None, bypass_errors=False):
os.makedirs(config["out_path"])
# Start preparing the prince command
args = [config["prince_executable"], '-o', outfile]
args = [config["prince_executable"], '--javascript', '-o', outfile]
# Each HTML output file in the target is another arg to prince
pages = get_pages(target)
args += [os.path.join(temp_files_path, p["html"]) for p in pages]