I’ve been using the regular expression ^$ to find and remove blank lines from Libreoffice Writer documents, but I’ve found this also removes manual page breaks. Is there a way to remove blank lines but keep the page breaks?
Edit: What I am doing is using copy and paste to append text from another source to the end of an existing Libreoffice document which contains manual page breaks between headings. The appended text contains blank lines between paragraphs which I want to remove (for consistency with the existing text) without losing the page breaks from the original document. I am using Linux Mint 22.1 and Libre Office 24.2.7.2.
It has just occurred to me that the easiest solution is probably to paste the new text into a separate Libroffice document, remove the blank lines there (provided it has no manual page breaks of its own), and then re-copy it into the other document. But if anyone knows a more direct way to do it I would be glad to hear it.