heybourn / headwind

An opinionated Tailwind CSS class sorter built for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=heybourn.headwind
MIT License
1.38k stars 46 forks source link

Does not remove the trailing space after the last class #107

Open calebrunion opened 3 years ago

calebrunion commented 3 years ago

Describe the bug Does not remove the trailing space after the last class inside the class attribute. For example,

<a href="#" class="border-r border-gray-900 sm:h-10 md:h-12 ">
                                                                                                            ^extra space

To Reproduce Add a space after the last class inside the class attribute and run the extension.

Expected behavior This space should be removed. Especially since the extension already removes the leading spaces before the first class and the extra spaces between them. Seems like this is reasonable expectation.

Screenshots Before: image After: image