From 92f710554dac6fb75e0c3b4bcf4a0305ee4df4c3 Mon Sep 17 00:00:00 2001 From: jwansek Date: Thu, 3 Mar 2022 18:13:24 +0000 Subject: started working on rendering junitxml's nicely to pdfs --- misc_classes.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'misc_classes.py') diff --git a/misc_classes.py b/misc_classes.py index 9fdded3..5bf16c1 100644 --- a/misc_classes.py +++ b/misc_classes.py @@ -2,8 +2,23 @@ from dataclasses import dataclass import tempfile import zipfile import shutil +import jinja2 import os +latex_jinja_env = jinja2.Environment( + block_start_string = '((*', + block_end_string = '*))', + variable_start_string = '(((', + variable_end_string = ')))', + comment_start_string = "((#", + comment_end_string = '#))', + line_statement_prefix = '%%', + line_comment_prefix = '%#', + trim_blocks = True, + autoescape = False, + loader = jinja2.FileSystemLoader(os.path.abspath('templates')) +) + @dataclass class ExtractZipToTempDir(tempfile.TemporaryDirectory): zip_file:str -- cgit v1.2.3