This commit is contained in:
Christopher Pickering 2021-09-16 09:48:41 +02:00
parent 53c6cb425e
commit c5045d2f0a
No known key found for this signature in database
GPG key ID: E14DB3B0A0FACF84
3 changed files with 18 additions and 0 deletions

View file

@ -1,6 +1,10 @@
Changelog
=========
0.3.6
-----
- Added formatter support for Nunjucks ``{%-`` opening blocks
0.3.5
-----
- Added support for more Django blocks

View file

@ -371,6 +371,7 @@ class Config:
| td
| th
| strong
| small
| em
| icon
| span

View file

@ -90,3 +90,16 @@ def test_long_attributes(runner: CliRunner, tmp_file: TextIO) -> None:
required="true"/>
"""
)
def test_small_tag(runner: CliRunner, tmp_file: TextIO) -> None:
write_to_file(
tmp_file.name,
b"""<small>text</small>""",
)
runner.invoke(djlint, [tmp_file.name, "--reformat"])
assert (
Path(tmp_file.name).read_text()
== """<small>text</small>
"""
)