LO Writer search/replace is well-nigh useless.
The well-recommended Alternative search-replace extension has not been updated since Jan 21, 2014 & is declared as suitable for lo-4.1. I’ve no idea how it performs under 5.0.
If you decide to code a macro, the following will help:
These are the Unicode chars used for new line/paragraph/page entry:
New Line: (U+000A) LINE FEED (LF)
New Paragraph: (U+000D) CARRIAGE RETURN (CR)
New Page: (U+000C) FORM FEED (FF)
Entering a LF char ((
Shift+Enter) will start a newline in the same paragraph (or bullet-point), whilst entering a CR char ((
Enter) will start a newline but also a new paragraph. Entering a FF char ((
Ctrl+Enter) will start a newline, new paragraph + new page all at the same time.
Thus, if you write yourself a search/replace macro you will be looking for 2 consecutive CR chars & replacing them with a single CR char.
If this helps then please tick the answer ()
…and/or show you like it with an uptick (∧)