Refactoring create-new-line in a vague attempt to understand its crazyness.