diff --git a/src/djlint/formatter/indent.py b/src/djlint/formatter/indent.py index 732d16d..a82f954 100644 --- a/src/djlint/formatter/indent.py +++ b/src/djlint/formatter/indent.py @@ -29,7 +29,6 @@ def indent_html(rawcode: str, config: Config) -> str: slt_template = config.optional_single_line_template_tags for item in rawcode_flat_list: - # if a raw tag first line if not is_block_raw and is_ignored_block_opening(config, item): is_raw_first_line = True @@ -80,7 +79,6 @@ def indent_html(rawcode: str, config: Config) -> str: re.IGNORECASE | re.MULTILINE | re.VERBOSE, ) and is_block_raw is False - or re.search(config.ignored_block_closing, item, re.IGNORECASE | re.VERBOSE) ): indent_level = max(indent_level - 1, 0) tmp = (indent * indent_level) + item + "\n" diff --git a/tests/test_html.py b/tests/test_html.py index c7ba676..1a43d7b 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -5,7 +5,7 @@ run:: pytest tests/test_html.py --cov=src/djlint --cov-branch \ --cov-report xml:coverage.xml --cov-report term-missing - pytest tests/test_html.py::test_ignored_attributes --cov=src/djlint --cov-branch \ + pytest tests/test_html.py::test_textarea_tag --cov=src/djlint --cov-branch \ --cov-report xml:coverage.xml --cov-report term-missing @@ -33,6 +33,19 @@ asdf """ ) + # check double nesting + output = reformat( + tmp_file, + runner, + b"""