From 7590cc98a9dd9dce42d3f5238cdcae40e2dad5b2 Mon Sep 17 00:00:00 2001 From: Camille <78221213+clatapie@users.noreply.github.com> Date: Mon, 23 Dec 2024 16:31:48 +0100 Subject: [PATCH] fix: pre-commit --- src/pyconverter/xml2py/ast_tree.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/pyconverter/xml2py/ast_tree.py b/src/pyconverter/xml2py/ast_tree.py index 08a769fa5..c734454ec 100644 --- a/src/pyconverter/xml2py/ast_tree.py +++ b/src/pyconverter/xml2py/ast_tree.py @@ -1056,12 +1056,22 @@ def to_rst(self, indent="", max_length=100, links=None, base_url=None, fcache=No intersection_types = set(NO_RESIZE_LIST).intersection(set(item[1].children_types)) if len(intersection_types) == 0: initial_indent = indent + " " * 2 - rst_item = resize_element_list(rst_item, max_length, initial_indent=initial_indent, subsequent_indent=initial_indent) + rst_item = resize_element_list( + rst_item, + max_length, + initial_indent=initial_indent, + subsequent_indent=initial_indent, + ) else: initial_indent = indent + " " subsequent_indent = indent + " " * 2 - rst_item = resize_element_list(rst_item, max_length, initial_indent=initial_indent, subsequent_indent=subsequent_indent) + rst_item = resize_element_list( + rst_item, + max_length, + initial_indent=initial_indent, + subsequent_indent=subsequent_indent, + ) active_items.append(rst_item) return "\n".join(active_items) + "\n"