sublimetext-codeformatter icon indicating copy to clipboard operation
sublimetext-codeformatter copied to clipboard

Do not lowercase attributes on format in HTML/XML

Open xirsoi opened this issue 9 years ago • 4 comments

XML and HTML attributes are case sensitive, and shouldn't have their case altered on format.

xirsoi avatar Jan 25 '17 14:01 xirsoi

This morning I copied and pasted a blob of xml output from something into Sublime so that I could format it quickly and build a few xpaths. Sadly, I didn't notice that it had changed all of the node cases from what they were to all lowercase.

Needless to say, my xpaths were not working for an hour until I finally realized what in the heck was going on...

Totally my mistake for not catching it faster, but also rather unexpected behavior from a formatter that has configurable options (but not an option to turn this particular thing off)

MegaJerk avatar May 09 '17 14:05 MegaJerk

HTML is not case sensitive XML is

thecotne avatar Aug 04 '17 20:08 thecotne

Have this been solved?

Antisunny avatar Apr 27 '18 10:04 Antisunny

This ticket probably should not have been closed. I did some adjusting of configs and noticed the error occurs when you have "formatter_version" set to "bs4" and it doesn't occur when you set it to "regexp". Hope this helps!

hsanjakd avatar Sep 20 '18 18:09 hsanjakd