I would like to ask a slight variation from a previous question (Remove new lines from string):
I would like to remove new lines from a string except when there is a space " " before the text on a new line (which would indicate that this is a new paragraph. Here is an example:
This is the first bit of text. It continues for a while until
there is a line break. It then continues for a bit longer but
the line break also continues alongside it.
What you see here is the second paragraph. You'll notice that
there is a space to mark the beginning of the paragraph. However
When joining these lines, a computer may not realize that the next
paragraph exists in this way.