[Solved] Another Search and Replace question

Discuss the word processor
Post Reply
annice
Posts: 32
Joined: Wed Dec 19, 2007 8:31 am

[Solved] Another Search and Replace question

Post by annice »

Thanks to Hagar de l'Est, I now know to enter the $ symbol for a paragraph mark. I am having another Find and Replace problem. Basically, the macro I want to record finds an empty paragraph (^$) and replaces it with any unused character -- I'm using `. Then I replace all paragraph marks with a space. So far, so good. The last step is to take that ` character and replace it with a paragraph mark. So I put the ` in the Find box and $ in the Replace box. Unfortunately it replaces not with the paragraph mark, but with an actual dollar sign. What am I missing here?

Annice
Last edited by annice on Wed Dec 19, 2007 12:59 pm, edited 1 time in total.
esperantisto
Volunteer
Posts: 578
Joined: Mon Oct 08, 2007 1:31 am

Re: Another Search and Replace question

Post by esperantisto »

Just put nothing into the replace box if you want to have an empty paragraph or put \n to add extra new lines. $ works as a regexp only in the find field.
AOO 4.2.0 (of 2015) / LO 7.x / Win 7 / openSUSE Linux Leap 15.4 (64-bit)
annice
Posts: 32
Joined: Wed Dec 19, 2007 8:31 am

Re: Another Search and Replace question

Post by annice »

Thanks. I think I have things working the way I want now. I'm sure I'll come up with other questions as I continue working with Writer. The support of this group is great!

Annice
User avatar
floris v
Volunteer
Posts: 4638
Joined: Wed Nov 28, 2007 1:21 pm
Location: Netherlands

Re: Another Search and Replace question [Solved]

Post by floris v »

One hint though: At present OOo can't handle paragraphs longer than 64 K. So if you have a long document, larger than 64 K characters, and you remove the internal paragraph markers, you get one paragraph exceeding that size, resulting in data loss. :shock:
LibreOffice 25.8.4.2 on Ubuntu Linux
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
Post Reply