Remove trailing newlines from generated controllers

Trailing newlines were being highlighted by [Hound CI](https://houndci.com/)