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
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>
Result will include broken tag <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: #236, fix: 1ce378c), but apparently another similar regex in indent.py got overlooked, since my use-case is a very specific one :).
The text was updated successfully, but these errors were encountered:
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: #236, fix: 1ce378c), but apparently another similar regex in indent.py got overlooked, since my use-case is a very specific one :).
The text was updated successfully, but these errors were encountered: