You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would have expected djhtml to apply the same amount of indentation to every line within the div. I imagine it’s IE conditional comments that are causing this – if so they probably don’t warrant any kind of support as they’re well past their expiration date. But I thought I’d report it anyway just in case.
The text was updated successfully, but these errors were encountered:
When encountering a <!-- tag, DjHTML suspends all further indentation. This allows you to do, for instance, the following:
<!--
,-._|\
/ .\
\_,--._/
-->
And the rabbit will be preserved. The same logic applies to <pre> ... </pre>, /* ... */, and {% comment %} ... {% endcomment %} tags.
There is an argument to be made to indent the contents within these tags to some degree, but since comments can contain just about everything I've decided they should just be left alone entirely. If you disagree, please explain in which cases DjHTML should indent comments, and in which cases it shouldn't.
In my previous comment I explained why I consider this the intended behavior. Since I haven't received a reason to change it, I'm closing this as wontfix. Feel free to reopen if you want to continue the discussion! 🤗
The following HTML:
gets indented as:
I would have expected djhtml to apply the same amount of indentation to every line within the
div
. I imagine it’s IE conditional comments that are causing this – if so they probably don’t warrant any kind of support as they’re well past their expiration date. But I thought I’d report it anyway just in case.The text was updated successfully, but these errors were encountered: