Why does the Automation Editor screw up the code?

This question is more for the devs. Ever since the automation editor came into existence, new users are taking “properly working” code from the forums and paste into their automation section (not the automation old) it messes up the formatting and then complain it doesn’t work. Why does the editor do this and is there a way to fix so it doesn’t do this for new users?