Refactor the new line shortcut