The trick for me was to add:
indent: false
to TinyMCE configuration. No more automatic <br> added when saving your code!
<br>