Cleaned up the newline behavior in the editor

Title has it. Fixes #225 

/cc @diegoreymendez