Replacing tabs with spaces in controller