Closed
Description
- I'm on the latest version of djLint
- I've searched the issues
- I've read the docs
System Info
- OS: macOS Ventura
- Python 3.11.2
- djlint, version 1.25.0
- Jinja2
Issue
First time user, I tried to reformat a template containing that code:
<script id="search-index" type="application/json">
{{ search_index }}
</script>
And it always produces:
<script id="search-index" type="application/json">
{
{
search_index
}
}
</script>
Whatever the kind of ignoring comment I put around that part of the HTML (which is probably another bug(?).
How To Reproduce
The command I use is the following:
djlint templates --profile=jinja --reformat --format-css --indent-css 2 --format-js --indent-js 2 --indent 2
I tried with or without the script's attributes (id
and type
) and there is no difference.
Hope it helps! (and I can provide more details on demand)