Simplified formatBatchNewlines()