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

Fix UnboundLocalError when tidy selected HTML content #33

Closed longhua closed 10 years ago

longhua commented 10 years ago

If I select some HTML content and run tidy command, I will get the following error. Traceback (most recent call last): File ".\sublimeplugin.py", line 362, in run File ".\html_tidy.py", line 339, in run UnboundLocalError: local variable 'deselect_flag' referenced before assignment