I am reaching out to you all to test this version of Tidy to see whether that works on your scripts and report back your finding.
Changes in this version:
Leave inline comments on the original position when the line is tidied, where possible.
Handle None Breaking Spaces (NBS) for Ascii and UTF8 files:
NBS characters within the leading & trailing whitespace and inside the code will be replaced by a regular space to allow tidy to properly tidy the code.