[Solved] Search and replace manual line breaks?

Discuss the word processor
Post Reply
lvehko
Posts: 8
Joined: Sun Dec 06, 2009 7:30 am

[Solved] Search and replace manual line breaks?

Post by lvehko »

When cutting and pasting large blocks of text from other word processing programs, they often come in with manual line breaks. In MSWord, in the "search and replace" function, you can select "paragraph" as an object to search and replace (with a single space), making it simple to remove manual line breaks globally. Has anybody figured out how to do this in OOWriter? In the search function, I see that there are menus under "more options" for "format" and "attribute", but I've never been able to figure out how to use these to do the above trick.
Last edited by Hagar Delest on Fri Jul 01, 2011 8:29 am, edited 1 time in total.
Reason: tagged [Solved].
OpenOffice 3.1 on Windows XP
User avatar
therabi
Volunteer
Posts: 763
Joined: Wed Sep 01, 2010 10:01 pm
Location: USA

Re: search and replace manual line breaks?

Post by therabi »

Using Search and Replace: In the Search box put \n in the Replace box leave empty. Under More Options make sure that Regular expressions is checked. Then click the Find all button then the Replace button. If your sure all the marked items are correct then you can use Replace all but that should be used with care in other cases. It is also suggested that you uncheck the Regular expressions box before closing.
OpenOffice.org v3.3, LibO v3.32 on Ubuntu 10.10 and Win7
lvehko
Posts: 8
Joined: Sun Dec 06, 2009 7:30 am

Re: search and replace manual line breaks?

Post by lvehko »

Doesn't work. "Search key not found."
OpenOffice 3.1 on Windows XP
lvehko
Posts: 8
Joined: Sun Dec 06, 2009 7:30 am

Re: search and replace manual line breaks?

Post by lvehko »

Found an answer in the knowledge base (sorry):

http://wiki.services.openoffice.org/wik ... ocument%3F
OpenOffice 3.1 on Windows XP
FrankPerkins
Posts: 22
Joined: Sun Apr 06, 2008 1:08 am

Re: [Solved] Search and replace manual line breaks?

Post by FrankPerkins »

I can't make this work. What am I doing wrong?
Frank
User avatar
Hagar Delest
Moderator
Posts: 32627
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: [Solved] Search and replace manual line breaks?

Post by Hagar Delest »

There is also the AltSearch extension that can do that. Else we need more details!
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
Post Reply