Skip to content
Snippets Groups Projects
Commit 55b71237 authored by Michael Kuron's avatar Michael Kuron :mortar_board:
Browse files

Jinja2 3.0 compatibility

parent 15593580
1 merge request!453Jinja2 3.0 compatibility
Pipeline #32126 passed with stages
in 5 hours, 10 minutes, and 37 seconds
......@@ -108,8 +108,8 @@ class AbstractConditionNode(AbstractKernelSelectionNode):
true_branch_code = self.branch_true.get_code(**kwargs)
false_branch_code = self.branch_false.get_code(**kwargs)
true_branch_code = do_indent(true_branch_code, width=4, indentfirst=True)
false_branch_code = do_indent(false_branch_code, width=4, indentfirst=True)
true_branch_code = do_indent(true_branch_code, width=4, first=True)
false_branch_code = do_indent(false_branch_code, width=4, first=True)
code = f"if({self.condition_text}) {{\n"
code += true_branch_code
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment