[Solved] How to remove empty lines

Discuss the word processor
Post Reply
alnaimi
Posts: 16
Joined: Sun Sep 06, 2009 1:13 am

[Solved] How to remove empty lines

Post by alnaimi »

Hi every one...
Is there were away to Auto remove empty lines?

Thanks

Title Edited. A descriptive title for posts helps others who are searching for solutions and increases your chances of a reply. (TheGurkha, Moderator)
Last edited by alnaimi on Tue Jun 01, 2010 2:43 pm, edited 1 time in total.
Ubuntu 9.04, OpenOffice 3.1.1
JohnV
Volunteer
Posts: 1585
Joined: Mon Oct 08, 2007 1:32 am
Location: Kentucky, USA

Re: How to? remove empty lines (Delete blanks lines)

Post by JohnV »

If the "empty lines" are actually blank paragraphs then you can use Find & Replace.
Search = ^$
Replace = nothing
Check Regular Expressions
alnaimi
Posts: 16
Joined: Sun Sep 06, 2009 1:13 am

Re: How to remove empty lines

Post by alnaimi »

Thanks JohnV
It was helpful to remove a lot of empty lines... But still there were other blanks lines...
Is there were any other solutions?
Thanks again
Ubuntu 9.04, OpenOffice 3.1.1
User avatar
RoryOF
Moderator
Posts: 35264
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: How to remove empty lines

Post by RoryOF »

Many of the blank lines you complain about may be due to spacings defined before or after paragraphs. You need to edit those paragraph styles and in the Indents and Spacing tab, under Spacing, make sure Above Paragraph and Below Paragraph are set to 0, and Line spacing is set to Single. Press the Help button on that window for more information.
Also consult main Help file for Styles.
Apache OpenOffice 4.1.16 on Xubuntu 26.04.1 LTS
User avatar
RGB
Posts: 1456
Joined: Mon Oct 08, 2007 1:34 am

Re: How to remove empty lines

Post by RGB »

Are you sure remaining lines are really empty? They could have one or more spaces. Try with

Code: Select all

^([ ]*)$
(notice the space between the square brackets)
There are two types of people: those who believe that there are two types of people and those who do not.

openSUSE Leap with KDE Plasma / LibreOffice
alnaimi
Posts: 16
Joined: Sun Sep 06, 2009 1:13 am

Re: How to remove empty lines

Post by alnaimi »

Fantastic RGB .... No Words to Thank you
This one removed all spacing empty lines.
And Thanks to you too RoryOF
Ubuntu 9.04, OpenOffice 3.1.1
Post Reply