welovewordpress/SublimeHtmlTidy — pull request #16 by fitnr (2012-08-21 03:56:41+00:00)
Title: Improve argument passing and errs

Plugin now passes arguments as either a list or a string, depending on the type of tidy being used.

bundled tidy.exe: recieves list of arguments. (This is first choice on Windows, only windows)
tidy PHP library and tidy in PATH: recieve string of arguments.
(OS X has an old tidy in its path, PHP is preferred)

If you'd prefer to try the exe on all platforms (including linux), remove the 'if' statement on tidy_html.py, line 147.

This is tested on OS X and a no-PHP Windows environment and is working fine.

The PHP library appears has trouble with the indent=auto setting. I looked at the source, and the option appears to be set as a Bool, so "auto" is ignored. A work-around for PHP is to set indent-attributes=1