[Solved] How to delete all line feed and carriage-return
- fazillatheef
- Posts: 14
- Joined: Tue Feb 09, 2010 3:46 pm
[Solved] How to delete all line feed and carriage-return
The following was the method that I used ,but it didn't work
1. Open the document and press Ctrl+F , The find and replace dialog will pop up.
2. Click on more options and check Regular expression.
3. Searched for [\r\n].
I had enabled "Display non printable character". I expected the carriage return and linefeeds to be selected.
But nothing was selected. Please Help!!!
Thanks in Advance
1. Open the document and press Ctrl+F , The find and replace dialog will pop up.
2. Click on more options and check Regular expression.
3. Searched for [\r\n].
I had enabled "Display non printable character". I expected the carriage return and linefeeds to be selected.
But nothing was selected. Please Help!!!
Thanks in Advance
Last edited by fazillatheef on Wed Feb 24, 2010 11:08 am, edited 1 time in total.
Open Office org 3.0.1 in Windows Vista
Re: How to delete all line feed and carriage-return
Download and install AltSearch
http://extensions.services.openoffice.org/en/node/3315
and make life easy for yourself.
http://extensions.services.openoffice.org/en/node/3315
and make life easy for yourself.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
- fazillatheef
- Posts: 14
- Joined: Tue Feb 09, 2010 3:46 pm
Re: How to delete all line feed and carriage-return
It doesn't work in Open Office 3.0.1RoryOF wrote:Download and install AltSearch
http://extensions.services.openoffice.org/en/node/3315
and make life easy for yourself.
I downloaded and checked it on my computer. I also read a comment saying that it won't work on Open office 3.0.1
Open Office org 3.0.1 in Windows Vista
Re: How to delete all line feed and carriage-return
Look at http://homepage.ntlworld.com/garryknigh ... egexp.html for some hints.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: How to delete all line feed and carriage-return
Nice! Thanks!RoryOF wrote:Look at http://homepage.ntlworld.com/garryknigh ... egexp.html for some hints.
More comprehensible than the built-in Help.
LibreOffice 5.2.1.2 on Lubuntu 16.04 (Openbox)
- fazillatheef
- Posts: 14
- Joined: Tue Feb 09, 2010 3:46 pm
Re: How to delete all line feed and carriage-return
I tried many combinations likeRoryOF wrote:Look at http://homepage.ntlworld.com/garryknigh ... egexp.html for some hints.
\n
\n\n
\r\n
\n\r
\r\r
\r
Nothing worked. Can this be a bug in Open office.
Open Office org 3.0.1 in Windows Vista
- Hagar Delest
- Moderator
- Posts: 32668
- Joined: Sun Oct 07, 2007 9:07 pm
- Location: France
Re: How to delete all line feed and carriage-return
Can't you upgrade to 3.2?fazillatheef wrote:It doesn't work in Open Office 3.0.1
I downloaded and checked it on my computer. I also read a comment saying that it won't work on Open office 3.0.1
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
- fazillatheef
- Posts: 14
- Joined: Tue Feb 09, 2010 3:46 pm
Re: How to delete all line feed and carriage-return
My company has more than 1.5 lakh employees. So I work in an office enviroment where we are restricted from updating or installing softwares. The update for Openoffice need to be added into our SOE(Standard Operating environment- stupid name to restrict us from updating software). Even though I have given quite a few requests to the team responsible ,they haven't initiated it.Hagar de l'Est wrote:Can't you upgrade to 3.2?fazillatheef wrote:It doesn't work in Open Office 3.0.1
I downloaded and checked it on my computer. I also read a comment saying that it won't work on Open office 3.0.1
The transition from Microsoft Office to Open office wasn't smooth. All the templates are using macros written in VBA which are incompatible with Open office. There are many other problems too. Since the program update don't happen properly these problems never get solved. And everyone's blaming Open Office for that.
Thanks for your interest
Open Office org 3.0.1 in Windows Vista
Re: How to delete all line feed and carriage-return
\n has just worked for me using standard Find and Replace. When I enable Display non printing characters, Shift Enter gives a backward pointing arrow. I was able to tell F&R to look for \n and replace with %%. Your combination \n\r tells it to find the newline character, followed by a "literal r", as OpenOffice does not interpret the \r as a carriage return. I think you may have to wait until someone more familiar with regular expressions comes online - I use the Alt Search when I have complicated searching, so don't know regular expressions well.
Edit: A large macro to remove excess line breaks from documents is given and discussed at http://www.oooforum.org/forum/viewtopic ... ight=ascii. It may be overkill for your needs. |
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
- fazillatheef
- Posts: 14
- Joined: Tue Feb 09, 2010 3:46 pm
Re: How to delete all line feed and carriage-return
It worked.RoryOF wrote:\n has just worked for me using standard Find and Replace. When I enable Display non printing characters, Shift Enter gives a backward pointing arrow. I was able to tell F&R to look for \n and replace with %%. Your combination \n\r tells it to find the newline character, followed by a "literal r", as OpenOffice does not interpret the \r as a carriage return. I think you may have to wait until someone more familiar with regular expressions comes online - I use the Alt Search when I have complicated searching, so don't know regular expressions well.
Edit: A large macro to remove excess line breaks from documents is given and discussed at
http://www.oooforum.org/forum/viewtopic ... ight=ascii. It may be overkill for your needs.
Thank you. I have saved lot of time
Open office wins again!!!
Open Office org 3.0.1 in Windows Vista