mirror of
https://github.com/Hopiu/djLint.git
synced 2026-05-01 02:14:51 +00:00
fixed #17
This commit is contained in:
parent
53c6cb425e
commit
c5045d2f0a
3 changed files with 18 additions and 0 deletions
|
|
@ -1,6 +1,10 @@
|
|||
Changelog
|
||||
=========
|
||||
|
||||
0.3.6
|
||||
-----
|
||||
- Added formatter support for Nunjucks ``{%-`` opening blocks
|
||||
|
||||
0.3.5
|
||||
-----
|
||||
- Added support for more Django blocks
|
||||
|
|
|
|||
|
|
@ -371,6 +371,7 @@ class Config:
|
|||
| td
|
||||
| th
|
||||
| strong
|
||||
| small
|
||||
| em
|
||||
| icon
|
||||
| span
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
"""
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue