How do you search and replace page breaks in Libre Office Writer? For example, I may want to remove all manually inserted page breaks (^m in MS Word). I can search for line breaks and paragraph breaks using regular expressions, but I don't see a page break character anywhere.
How to search and replace page breaks in Libre Office
libreoffice-writer
Best Answer
Quite a hack, but I'd suggest
unzip
ping the .odt file and working with raw XML. The content.xml seems to be the correct file to edit.I have prepared a test file with content:
And here is the relevant part of the raw XML:
(The real file will proably be more complex.) It seems to me that "P1" is a style created to "bear" the property of page-breaking before the paragraph. So two things come into my mind:
<text:p />
tagsBy the way, here I'd also recommend avoiding regexes in favor of some real XML parser.