diff --git a/docxtpl/template.py b/docxtpl/template.py index d9ab3ff..0b81868 100644 --- a/docxtpl/template.py +++ b/docxtpl/template.py @@ -311,7 +311,7 @@ def render_xml_part(self, src_xml, part, context, jinja_env=None): line_number = max(exc.lineno - 4, 0) exc.docx_context = map( lambda x: re.sub(r"<[^>]+>", "", x), - src_xml.splitlines()[line_number : (line_number + 7)], + src_xml.splitlines()[line_number: (line_number + 7)], # fmt: skip ) raise exc