I was wondering if there is a library or easy way that allows me to take an NSString
and replace any stretch of '\n' and spaces that are strung together with just a single space? (included in this, I also just want to replace all occurrences of '\n' by itself with a space). So I'd want to take an NSString
like this:
bla bla
bla bla
and convert it to this:
bla bla bla bla
I've looked around and it seems the only it can be done is manually. Does anyone know if there is another way?