In vim I'd do something like:
:%s/$/|$
(add a | at every end of line)
:%s/|\n\s\*/\r/g
(replace every | followed by a newline and an arbitrary number of whitespace (at least one) with just a newline)
:%s/|\n/ /g
(replace every | and newline with a space)
Now every paragraph should be a single line (if the source was that simple to begin with).
|