I think we want to keep `/\n\s*/` instead of `/\n+/` ; this would still match `\n\n` but this would also replace `\n ` with a single space.