diff --git a/src/djlint/settings.py b/src/djlint/settings.py index eb30358..022ac49 100644 --- a/src/djlint/settings.py +++ b/src/djlint/settings.py @@ -227,7 +227,6 @@ class Config: | path | script | style - | source | details | summary ) @@ -287,7 +286,6 @@ class Config: | path | script | style - | source | details | summary ) @@ -445,6 +443,7 @@ class Config: link | img | meta + | source """ self.single_line_template_tags: str = r""" diff --git a/tests/test_html.py b/tests/test_html.py index 236b833..304f6e4 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -199,3 +199,21 @@ def test_ignored_attributes(runner: CliRunner, tmp_file: TextIO) -> None: json-data='{"menu":{"header":"SVG Viewer","items":[{"id":"Open"}]}}'> """ ) + + +def test_picture_source_img_tags(runner: CliRunner, tmp_file: TextIO) -> None: + write_to_file( + tmp_file.name, + b"""\ +image""", + ) + runner.invoke(djlint, [tmp_file.name, "--reformat"]) + assert ( + Path(tmp_file.name).read_text() + == """ + + image + +""" + )