[Solved] Deleting repeated blank lines
[Solved] Deleting repeated blank lines
I am using open office writer to edit a text document. The imported document has one line of text and then three blank lines. Is there any way to automate deleting all the blank lines rather that going through it manually?
Last edited by RoryOF on Sat Jun 03, 2017 9:38 am, edited 1 time in total.
Reason: Added [Solved] and green tick [RoryOF, Moderator]
Reason: Added [Solved] and green tick [RoryOF, Moderator]
OpenOffice 4.1.1 on Windows 7
Re: Deleting repeated blank lines
Use /Edit /Find and Replace. In Find box enter ^$, nothing in Replace box; drop "More Options" and select "Regular Expressions". Then press Replace All button. Repeat Replace All until nothing is found. This will strip all blank lines from your file. If in any doubt, make a backup copy of the original so you can revert to that and try again if necessary.
Apache OpenOffice 4.1.16 on Xubuntu 24.04.3 LTS
Re: Deleting repeated blank lines
Thank you, that is awesome.
You have saved me many hours of work.
You have saved me many hours of work.
OpenOffice 4.1.1 on Windows 7