The beautifier is agood tool, but sometimes it doesn't really help, for very long sql instruction it cuts the line at sometime stranges place.
My sugestion is to have some hints :
/*NO BEAUTY*/
code I don't want to beautify
...
/*END NO BEAUTY*/
so that we can keep it as we want and continue to...