How can one replace paragraph marks with line breaks?

Please note the syntax of my question, i.e., I do NOT wish to replace line breaks with paragraph marks.

Although \n performs “correctly” in the Find box, when used in the Replace box it does NOT produce a (shift+return) manual line feed but rather a paragraph break.

In advance, thank you!
~miguel

You won’t succeed with this using the built-in F&R tool.
There is,however, an extension “Alternative Search and Replace” which is capable of doing what you want to achieve.
You find it here. Download the AltSearch.oxt and install it with the help of the extension manager of LibreOffice.

If you only need a find and replace routine, see Lupp’s advise about AltSearch. Or try OOoFBTools. It is an extension for converting and processing eBooks in FictionBook2 format and includes various features for processing scanned documents including joining broken paragraphs. See Manual joining of paragraphs for various options.

Hello @w3id4lo,

You might also just run the following macro:

Function Writer_ReplaceAll_Paragraph_Breaks_With_Linefeeds() As Long
REM	Replaces all Paragraph breaks with a Linefeed character within the current Writer document.
REM Returns the number of found/replaced occurrences.
	Dim oReplace As Object : oReplace = ThisComponent.createReplaceDescriptor()
	oReplace.setSearchString( "$" )
	oReplace.setReplaceString( chr(10) )
	oReplace.SearchRegularExpression = True
	Writer_ReplaceAll_Paragraph_Breaks_With_Linefeeds = ThisComponent.replaceAll( oReplace )
End Function

With Regards, lib