UI Script: Indentation on reopening a user script incorrect

The indentation seems to switch from tabs to spaces when a user UI script is opened in the internal editor.