in reply to text file problem
perl -l -0777 -pe 's/\n+(\D)/\1/g' file [download]
Or if the lines shouldn't be joined across the blank lines then this:
perl -l -00 -pe 's/\n(\D)/\1/g' file [download]
-- John.