alek-sys / sublimetext_indentxml

Plugin for Sublime Text editor for reindenting XML and JSON files
MIT License
534 stars 135 forks source link

Use os.path.splitext to detect language and ran PEP8 #77

Closed bheklilr closed 9 years ago

bheklilr commented 9 years ago

Changed from explicitly replacing the .tmLanguage extension to using os.path.splitext to get the filename without the extension so that it works with the new sublime-syntax files.

Ran PEP8 to make everything look pretty.

Replaced from xml.dom.minidom import * with from xml.dom.minidom import parseString, since that's the only function used from that module.

alek-sys commented 9 years ago

Thanks for that!