I am trying to create a CSV file from badly formatted text file and need to remove line breaks in places
IMHO this is not a task for Writer.
If there is no pattern in the occurrence of line break, use a text editor and proceed manually.
If you discover a pattern, use a regular expression in the editor or an external tool like awk, gawk or similar.
Citing your OS would allow more specific suggestions.
To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!
In case you need clarification, edit your question (not an answer) or comment the relevant answer.
Thanks. I have now discovered regular expressions in find and replace and I am making progress.