Disabled visual editor and WordPress keeps adding line-breaks to my code

This should do the trick:

remove_filter('the_content', 'wpautop');
remove_filter('the_content', 'wptexturize');