I have some text that is in the following format
\r\n
1. \r\n
par1 par1 par1 \r\n
\r\n
par1 par1 par1 \r\n
\r\n
2. \r\n
\r\n
par2 par2 par2
What I want to do is to join them into paragraphs so that the end result would be:
1. par1 par1 par1 par1 par1 par1 \n
2. par2 par2 par2 \n
I have tried with multiple string manipulations such as str.split(), str.strip() and others, as well as searchign the internet for solutions but nothing seems to work.
Is there any easy way to do this programatically? The text is very long so doing by hand is out of the question.