-
-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Labels
Description
- I'm on the latest version of djLint
- I've searched the issues
- I've read the docs
System Info
- OS: macos 14.7.4
- Python Version (
python --version): 3.13.2 - djLint Version (
djlint --version): 1.36.4 - template language: jinja2
Issue
{{_(error)}} in template is being replaced as {{ _(<class 'regex._regex_core.error'>) }}
How To Reproduce
$ echo '{{_(error)}}' > error.html
$ uv run djlint error.html --extension=html --reformat
Reformatting 1/1 files ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 00:00
error.html
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
@@ -1 +1 @@
-{{_(error)}}
+{{ _(<class 'regex._regex_core.error'>) }}
1 file was updated.
$ cat error.html
{{ _(<class 'regex._regex_core.error'>) }}Reactions are currently unavailable