mirror of
https://github.com/Hopiu/djLint.git
synced 2026-04-28 08:54:45 +00:00
disallow negative indent when there is a tag missmatch.
This commit is contained in:
parent
cd835b79f6
commit
969dd046bf
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ def indent_html(rawcode):
|
|||
and is_block_raw is False
|
||||
or re.search(ignored_tag_closing, item, re.IGNORECASE)
|
||||
):
|
||||
indent_level = indent_level - 1
|
||||
indent_level = max(indent_level - 1, 0)
|
||||
tmp = (indent * indent_level) + item + "\n"
|
||||
blank_counter = 0
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue