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

perl -0040 -pe "s/\n //" file.txt
Set the input record separator to space, then remove any newline-space combinations.

Caution: Contents may have been coded under pressure.