djlint / djLint

✨ HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang
https://djLint.com
GNU General Public License v3.0
686 stars 84 forks source link

[bug][formatter] Can reformat fix single quoted attributes (H008)? #706

Open EyePulp opened 1 year ago

EyePulp commented 1 year ago

System Info

Issue

I'm using vscode with the djlint plugin. I routinely get this warning (varied for the particular line and chunk of HTML): H008 4:4 Attributes should be double quoted. <div id='main-navbar

My dumb question:

is that something the --reformat arg can fix automatically or not? I've looked everywhere I can think of, but beyond the warning there doesn't seem to be an auto fix for it.

welcome[bot] commented 1 year ago

Thanks for opening your first issue here!