diff --git a/src/djlint/formatter/attributes.py b/src/djlint/formatter/attributes.py index 4152670..1a4f527 100644 --- a/src/djlint/formatter/attributes.py +++ b/src/djlint/formatter/attributes.py @@ -8,19 +8,13 @@ from ..helpers import inside_ignored_block from ..settings import Config -def format_template_tags(config: Config, attributes: str) -> str: +def format_template_tags(config: Config, attributes: str, spacing: int) -> str: """Format template tags in attributes.""" # find break tags, add breaks + indent # find unindent lines and move back # put short stuff back on one line - leading_space = "" - if re.search(r"^[ ]+", attributes.splitlines()[0], re.MULTILINE): - leading_space = re.search( - r"^[ ]+", attributes.splitlines()[0], re.MULTILINE - ).group() - - def add_indentation(config: Config, attributes: str) -> str: + def add_indentation(config: Config, attributes: str, spacing: int) -> str: """Indent template tags. |