Intelligently format output on saving

Do not change if formatOutput is true

Otherwise, change it, save it, and change it back.