I ran the HTML formatter after changing the settings. It probably could have done a better job, but at least the tabs seem to be fixed.