mirror of
https://github.com/Hopiu/djLint.git
synced 2026-05-01 18:34:45 +00:00
fixed single line regex for endblock text %}
This commit is contained in:
parent
5d472809ea
commit
2356970be7
1 changed files with 1 additions and 2 deletions
|
|
@ -61,7 +61,6 @@ def indent_html(rawcode):
|
|||
slt_template = "|".join(single_line_template_tags)
|
||||
|
||||
for item in rawcode_flat_list:
|
||||
|
||||
# if a raw tag then start ignoring
|
||||
if (
|
||||
tag_raw_flat_opening
|
||||
|
|
@ -80,7 +79,7 @@ def indent_html(rawcode):
|
|||
re.findall(r"(<(%s)>)(.*?)(</(\2)>)" % slt_html, item, re.IGNORECASE)
|
||||
or re.findall(r"(<(%s) .+?>)(.*?)(</(\2)>)" % slt_html, item, re.IGNORECASE)
|
||||
or re.findall(
|
||||
r"^({% +?(" + slt_template + r") +?.+?%})(.*?)({% +?end(\2) +?%})",
|
||||
r"^({% +?(" + slt_template + r") +?.+?%})(.*?)({% +?end(\2) +?.*?%})",
|
||||
item,
|
||||
re.IGNORECASE | re.MULTILINE,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue