Cleaned up the newline behavior in the editor.