[Solved] Delete space between paragraphs

Discuss the word processor

[Solved] Delete space between paragraphs

Postby perchiper » Mon May 03, 2010 10:36 am

Hi!

I copied text from Internet page. When I click paste on my Open Office word processor, large gap appears between paragraphs. I tried to work it from format => paragraph, and made space above and below paragraph to zero (0). Alas, it didn't help much.

As much as I can just delete those spaces with backspace on my keyboard, it gets tiresome when I copied tenths and load of pages into writer. (Especially when average of text that I copied reached out up to 500 pages, and sometimes more)



Any suggestion?
Last edited by Hagar Delest on Mon May 03, 2010 4:35 pm, edited 1 time in total.
Reason: tagged [Solved].
OpenOffice 3.0 on Windows Vista
perchiper
 
Posts: 6
Joined: Mon May 03, 2010 10:27 am

Re: Delete space between paragraphs

Postby RoryOF » Mon May 03, 2010 10:47 am

Turn on Display Non-printing Characters and see what is causing the spaces. (Backwards P button on toolbar).
Apache OpenOffice 4.0.1 on Xubuntu 13.10 and Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 14348
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Delete space between paragraphs

Postby perchiper » Mon May 03, 2010 1:39 pm

Okay, Rory.

I've clicked it. There seems to be three enter symbol (like in keyboards) between paragraphs, and there are two of backward p after the last paragraph. How can I delete them all at once?
OpenOffice 3.0 on Windows Vista
perchiper
 
Posts: 6
Joined: Mon May 03, 2010 10:27 am

Re: Delete space between paragraphs

Postby RoryOF » Mon May 03, 2010 1:47 pm

The enter symbol as you call it is a Linefeed. Install Alternative dialog Find & Replace for Writer
http://extensions.services.openoffice.org/en/project/AltSearch
from the Extensions repository and you will quikly be able to remove these. There are other ways, using Regular Expressions and Find and Replace, but this extension is the easiest way.
Apache OpenOffice 4.0.1 on Xubuntu 13.10 and Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 14348
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Delete space between paragraphs

Postby perchiper » Mon May 03, 2010 2:35 pm

Rory,

I tried the extension, but I could not find any 'linefeed' in there.

So, I experimented with regular => manual line break => find all => replace all...., and all paragraphs joined together. In fact, there's no paragraphs at all. It's all one big paragraph from the first page to the end.

For example:

This is paragraphs that I wanted to edit:

(linefeed)
(linefeed)
(linefeed)
Twenty minutes later they found a little restaurant on the road side. It was small and quite empty but it seemed clean, and frankly they were in a big need of a rest, so they wouldn't complain about anything. They ordered coffee and muffins and sat down near a big window.(linefeed)
(linefeed)
(linefeed)
(linefeed)
The weather was nice, blue sky and middly cool air, the view was beautiful from here, they could see the mountains in the horizon and the landscape was getting a bit greener.(linefeed)
(linefeed)
(linefeed)
(linefeed)


I wanted to make it like this; totally normal paragraphs.

Twenty minutes later they found a little restaurant on the road side. It was small and quite empty but it seemed clean, and frankly they were in a big need of a rest, so they wouldn't complain about anything. They ordered coffee and muffins and sat down near a big window.

The weather was nice, blue sky and middly cool air, the view was beautiful from here, they could see the mountains in the horizon and the landscape was getting a bit greener.


Instead, this happens:

Twenty minutes later they found a little restaurant on the road side. It was small and quite empty but it seemed clean, and frankly they were in a big need of a rest, so they wouldn't complain about anything. They ordered coffee and muffins and sat down near a big window.The weather was nice, blue sky and middly cool air, the view was beautiful from here, they could see the mountains in the horizon and the landscape was getting a bit greener.


Err..., a little help?
OpenOffice 3.0 on Windows Vista
perchiper
 
Posts: 6
Joined: Mon May 03, 2010 10:27 am

Re: Delete space between paragraphs

Postby RoryOF » Mon May 03, 2010 2:54 pm

Using AltSearch

Find \n\n\n
Replace with \p

as far as I remember.
Apache OpenOffice 4.0.1 on Xubuntu 13.10 and Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 14348
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Delete space between paragraphs

Postby perchiper » Mon May 03, 2010 3:04 pm

Whoa.... works like a charm. Thanks Rory. You save my life in there.
OpenOffice 3.0 on Windows Vista
perchiper
 
Posts: 6
Joined: Mon May 03, 2010 10:27 am


Return to Writer

Who is online

Users browsing this forum: No registered users and 15 guests