welovewordpress / SublimeHtmlTidy

Tidy, clean and prettify your HTML code with this plugin for Sublime Text 2
GNU General Public License v2.0
88 stars 15 forks source link

Indention #3

Closed sindresorhus closed 12 years ago

sindresorhus commented 12 years ago

Instead of having the option htmltidy-indent-spaces, you should instead respect the current indention setting in Sublime, if it's tabs or spaces, and in the case of spaces, how many.

welovewordpress commented 12 years ago

Thank you for all your feedback, @sindresorhus. I already fixed issue #4 and issue #5 while I actually should be doing other things... and spent too much time researching about upgrade messages and custom version numbers.

So I would greatly appreciate it if you could just post those two lines of python that will get me the current indention settings in Sublime and I shall implement it in no time. Or send a pull request, of course.

Thank you in advance.

welovewordpress commented 12 years ago

@sindresorhus Ok, the plugin now respects the current views indentation settings.

Actually, Tidy itself always outputs spaces and never tabs, so it converts spaces to tabs afterwards.

The option in the settings file will be removed.