Format line endings.