diff options
Diffstat (limited to 'generator')
-rw-r--r-- | generator/generate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generator/generate.py b/generator/generate.py index 60ac8f6..3c23b40 100644 --- a/generator/generate.py +++ b/generator/generate.py @@ -26,7 +26,7 @@ def replace_references(lines, file_dir): evald_text = eval_p.communicate()[0].decode('utf-8') if evald_text is None or len(evald_text.strip()) == 0: raise Exception("Evaluating `{}` produced no output".format(command)) - result = result + '<pre>' + evald_text + '</pre>\n' + result = result + '<pre>\n' + evald_text + '</pre>\n' except Exception as e: print("Error processing line {}:\n {}\nError: {}".format(i, line, e)) return None @@ -66,7 +66,7 @@ if __name__ == "__main__": print("Error compiling {}".format(md_source)) sys.exit(3) # now shove it all through pandoc - pandoc_proc = subprocess.Popen(['pandoc', '-H', headers_file], stdout=subprocess.PIPE, stdin=subprocess.PIPE) + pandoc_proc = subprocess.Popen(['pandoc', '--template=content_template.pandoc'], stdout=subprocess.PIPE, stdin=subprocess.PIPE) html = pandoc_proc.communicate(markdown_blob.encode('utf-8'))[0] try: if not os.path.isdir('./generated/' + page_cwd): |