fix newlines for progress output