wget -O pap.txt https://www.gutenberg.org/ebooks/1342.txt.utf-8
perl -0777 -pe 's/(?<!\r\n)\r\n(?!\r\n)( +)?/ /g' pap.txt
( +)?
New to topics? Read the docs here!