Remove excess whitespace from controller templates