in reply to perl one-liner, is it possible?

If the file is not too large:
perl -0777 -pe 's/\n\s//g' inputfile
-imran