CAn LO Writer find and replace carriage return with paragraph marks?

Word does this using ^l and ^p in the search and replace fields.

My coding experience is that LO/OO uses:-

  • (U+000A) LF for a newline
  • (U+000D) CR for a new paragraph
  • (U+000C) FF for a new page

Thus, easy enough to search/replace from Basic, but I’m unsure how they would be expressed within the program to search/replace, or indeed whether it is even possible.

If this helps then please tick the answer (:heavy_check_mark:).

Check out http://guide2office.com/1170/replace-paragraph-marks-carriage-returns-in-5-steps/ and LibreOffice help on regular expressions. As a novice I’ve found the AltSearch extension mentioned on that site is a bit easier to use (it is available as a LibreOffice extension, http://extensions.libreoffice.org/extension-center/alternative-dialog-find-replace-for-writer )

This worked for me.

Go to Edit > Find & Replace. Turn on ‘Regular expressions’.

Search for \n. Replace with \n. (Same thing).

This replaces carriage return with a normal paragraph mark.

This does work. For more information:

https://help.libreoffice.org/Common/List_of_Regular_Expressions

and especially:

https://wiki.openoffice.org/wiki/Documentation/How_Tos/Regular_Expressions_in_Writer#Tabs.2C_newlines.2C_paragraphs_.5Ct_.5Cn_.24