When using small max_attribute_length combined with a custom_html regex tag, the formatter breaks the custom html tags in some cases by inserting whitespace into the tag.
How To Reproduce
Use max_attributes_length = 0 (or at least smaller than the last word of the custom html tag)
Use (e.g.) custom_html="[\w\-]+"
Try to format something like <tag-loooooong></tag-loooooong>
System Info
Issue
When using small max_attribute_length combined with a custom_html regex tag, the formatter breaks the custom html tags in some cases by inserting whitespace into the tag.
How To Reproduce
max_attributes_length = 0
(or at least smaller than the last word of the custom html tag)custom_html="[\w\-]+"
<tag-loooooong></tag-loooooong>
<tag- loooooong>
Fix
I've already implemented a fix and will make a PR right after this issue. The fix is basically what was already done for a similar issue (issue: https://github.com/djlint/djLint/issues/236, fix: https://github.com/djlint/djLint/commit/1ce378c43d3815edbb23cbc6664fc7ec540f68de), but apparently another similar regex in indent.py got overlooked, since my use-case is a very specific one :).