handle magically disappearing newlines