Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] [Formatter] having multiple "pre" tags ends formatting #187

Closed
3 tasks done
christopherpickering opened this issue Feb 14, 2022 · 1 comment
Closed
3 tasks done
Labels

Comments

@christopherpickering
Copy link
Contributor

System Info

  • OS: Mac
  • Python Version 3.7
  • djLint Version 0.7.4
  • template language: django

Issue

Having a single pre statement seems to be ok, but having 2 makes indentation end after the second statement.

How To Reproduce

{% if a %}
    <div>
        <pre><code>asdf</code></pre>
        <pre><code>asdf
            </code></pre>
        <!-- other html -->
        <h2>title</h2>
        <p>paragraph</p>
    </div>
{% endif %}
         <pre><code>asdf</code></pre>
         <pre><code>asdf
             </code></pre>
-        <!-- other html -->
-        <h2>title</h2>
-        <p>paragraph</p>
-    </div>
+<!-- other html -->
+<h2>title</h2>
+<p>
+paragraph
+</p>
+</div>
 {% endif %}
@christopherpickering
Copy link
Contributor Author

🎉 This issue has been resolved in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant