djLint
djLint copied to clipboard
fix(formatter): fix IndexError while adding indentation to attributes
solves issue with boolean attributes at the start of tags. closes #290
Pull Request Check List
Resolves: #290
- [x] Added tests for changed code.
- [ ] Updated documentation for changed code.
Deploy Preview for djlint canceled.
Name | Link |
---|---|
Latest commit | a3ccc1974c4dbb35043e20b714171a60ac0f77bb |
Latest deploy log | https://app.netlify.com/sites/djlint/deploys/62ec86a106a2f10009efc0cc |
Codecov Report
Merging #326 (a3ccc19) into dev (40fdd8c) will decrease coverage by
0.11%
. The diff coverage is50.00%
.
:exclamation: Current head a3ccc19 differs from pull request most recent head 183c4fc. Consider uploading reports for the commit 183c4fc to get more accurate results
@@ Coverage Diff @@
## dev #326 +/- ##
==========================================
- Coverage 96.09% 95.97% -0.12%
==========================================
Files 15 15
Lines 769 771 +2
Branches 167 172 +5
==========================================
+ Hits 739 740 +1
Misses 23 23
- Partials 7 8 +1
Impacted Files | Coverage Δ | |
---|---|---|
src/djlint/formatter/attributes.py | 98.80% <50.00%> (-1.20%) |
:arrow_down: |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
Thanks @ruanmed !
:tada: This PR is included in version 1.9.5 :tada:
The release is available on:
Your semantic-release bot :package::rocket: