Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

Problems after upgrading to Sierra or High Sierra? Try these steps
Problems after upgrading to NeoOffice 2017? Try these steps
Download or installation problems? Try these steps


Support
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice
· Download latest patch
· User Guide
· User Guide Volume 2


RSS Feeds
· Announcements Only
· All Posts


  
NeoOffice :: View topic - Removing the space between each paragraph
 SearchSearch   ProfileProfile   Log inLog in 

Removing the space between each paragraph
 
Post new topic   Reply to topic    NeoOffice Forum Index -> NeoOffice Releases
View previous topic :: View next topic  
Author Message
Persy
Red Pill


Joined: Sep 07, 2006
Posts: 6

PostPosted: Thu Sep 07, 2006 9:13 pm    Post subject: Removing the space between each paragraph Reply with quote

Hi all. Newbie here.

I initially wrote something in Word, in which I hit "Enter" to start each new paragraph. This means the paragraphs have single line spacing between each of them, like this entry does.

But now I use NeoOffice and would like to know if there is a way to remove the spaces between the paragraphs. So that the entire document looks like a solid block of text (with indents to show new paragraphs), like it would in a novel.

I've done a forum search and can't find anything on the topic that I understand.

Any help would be appreciated. Thank you!
Back to top
View user's profile Send private message
fabriziovenerandi
Keymaker


Joined: Oct 12, 2004
Posts: 77
Location: italia

PostPosted: Thu Sep 07, 2006 9:55 pm    Post subject: Reply with quote

look in paragraph properties if you have setted space before or after the paragraph.
_________________
eadem sed non eodem modo facere
Back to top
View user's profile Send private message Visit poster's website AIM Address
Persy
Red Pill


Joined: Sep 07, 2006
Posts: 6

PostPosted: Thu Sep 07, 2006 9:56 pm    Post subject: Reply with quote

I have looked, and the space setting is at zero.
Back to top
View user's profile Send private message
iking
Operator


Joined: Apr 26, 2006
Posts: 49
Location: Vancouver, BC

PostPosted: Thu Sep 07, 2006 10:00 pm    Post subject: Reply with quote

If all you're separating grafs with blank lines, a simple search-and-replace should do the trick. Open up the find-and-replace dilaogue (Cmd-F); click on "more options" and tick the "Regular Expressions" box. Search for ^$ and replace with nothing (leave the replace field blank). The expression ^$ refers to a blank line -- ^ signifies the start of a line, and $ the end. Use Cmd-Z to undo this action if it mangles your work.

The NeoOffice help has a full list of the regex operations and classes that you can use when using regexes to search -- you can access them as part of the find-and-replace's help section.

After you've stripped out the blank lines, you can set the first-line indent for each graf in the Stylist -- no tab characters needed.

HTH,
Ian
Back to top
View user's profile Send private message
Persy
Red Pill


Joined: Sep 07, 2006
Posts: 6

PostPosted: Thu Sep 07, 2006 10:03 pm    Post subject: Reply with quote

I tried that, and it says "search key not found."
Back to top
View user's profile Send private message
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Thu Sep 07, 2006 10:57 pm    Post subject: Reply with quote

See also this article in the wiki for more find/replace tips.

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
View user's profile Send private message Visit poster's website
fabrizio venerandi
Guest





PostPosted: Thu Sep 07, 2006 11:44 pm    Post subject: Reply with quote

sorry, I have not read that you put the ENTER manually between each paragraph.
This could be a solution:

a) go in TOOL/AUTOCORRECT
b) click in OPTONS tab
c) select REMOVE BLANK PARAGRAPHS
d) go on FORMAT/AUTOFORMAT/APPLY
e) enjoy
Back to top
Persy
Red Pill


Joined: Sep 07, 2006
Posts: 6

PostPosted: Fri Sep 08, 2006 7:29 am    Post subject: Reply with quote

It worked! The only problem is that it removes all first line indents. Now the whole document is just one big block of text.

I would like to keep the first line indents, if possible. If not, I will have to go through all the pages and manually indent each paragraph over again.

I am willing to do that, but that's hours of work I would like to avoid if possible.
Back to top
View user's profile Send private message
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Fri Sep 08, 2006 10:26 am    Post subject: Reply with quote

Do all (or most) of these paragraphs have the same paragraph style? In that case you can go to the stylist, and change the style to have some white space before and after each paragraph.
Back to top
View user's profile Send private message
iking
Operator


Joined: Apr 26, 2006
Posts: 49
Location: Vancouver, BC

PostPosted: Fri Sep 08, 2006 1:47 pm    Post subject: Reply with quote

Persy wrote:
I would like to keep the first line indents, if possible. If not, I will have to go through all the pages and manually indent each paragraph over again.


There's a pre-made "First line indent" style in the stylist's paragraph styles. Select all the paragraphs you want to indent and set their style to "first line indent"; you can then tweak the style (indent size, leading, and so forth) to your liking using the stylist if you don't care for the defaults.

Ian
Back to top
View user's profile Send private message
Persy
Red Pill


Joined: Sep 07, 2006
Posts: 6

PostPosted: Fri Sep 08, 2006 4:22 pm    Post subject: Reply with quote

Trainman: I am trying to remove the white spaces between the paragraphs, not put them in. Smile

Sentinel: I do know about the pre-made First Line Indent style, but the problem here is that the entire 10 pages are one solid block of text. i.e., the whole doc is just one paragraph. So first line indent only affects the very first line.

Basically, I've managed to remove the spaces b/w the paragraphs using Fabrizio's recommendation. But it's not keeping the text in paragraphs.

This is because I needed to hit Enter twice (when I was first writing in Word) in order to return from the end of a sentence AND start a new paragraph.

So when I check "Remove blank paragraphs" in AutoCorrect and apply, it removes the space both at the end of the sentence AND the white space before the next paragraph. Therefore creating one solid block of text.

It's not looking like a solvable problem...

EDIT: I think I've figured out the problem. It might be because the document is preformatted in Word. I turned on "view nonprinting characters", I saw these weird arrows:
http://img.photobucket.com/albums/v97/perseph2hades/Misc/Picture2.png

Whereas a new NeoOffice doc I just made has no weird arrows and looks like this:
http://img.photobucket.com/albums/v97/perseph2hades/Misc/Picture1.png


Last edited by Persy on Sat Sep 09, 2006 1:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
iking
Operator


Joined: Apr 26, 2006
Posts: 49
Location: Vancouver, BC

PostPosted: Fri Sep 08, 2006 10:01 pm    Post subject: Reply with quote

The shots do clear things up. From the looks of things, it seems that when the file was in the Word .doc format, the "paragraph breaks" were actually represented in the file as line breaks within one giant paragraph (#$*&!@ Word...), so it's no wonder you ended up with one big mass of text after trying to strip out the whitespace. OTOH, your shot of the file in the NeoOffice .odt format shows paragraph breaks. You should be able to use the fixes suggested above (deleting empty lines or stripping whitespace, followed by styling) after saving your file in the .odt format.

Ian
Back to top
View user's profile Send private message
amayze
The Merovingian


Joined: Oct 24, 2005
Posts: 561
Location: Edinburgh, Scotland

PostPosted: Sat Sep 09, 2006 3:55 am    Post subject: Reply with quote

I recently complained in this post about the fact that NeoOffice regular expressions sometimes mean two different things depending where you use them, however this is exactly the instance when this is useful.

Try doing a search and replace.
Click on More Options... and check the box by Regular Expressions
Search for "\n" - which will match the line breaks in your document - and replace it with "\n" which will insert paragraph breaks in their place.
Now change the search term to "^$" and the replace to "" (nothing) and you will be able to remove of the blank paragraphs in between your text.

Hope that helps.

Andy.
Back to top
View user's profile Send private message Visit poster's website
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Sat Sep 09, 2006 10:16 am    Post subject: Reply with quote

Wiki'd Wink

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
View user's profile Send private message Visit poster's website
Persy
Red Pill


Joined: Sep 07, 2006
Posts: 6

PostPosted: Sat Sep 09, 2006 1:37 pm    Post subject: Reply with quote

God bless you guys, Andy, Ian and Smokey.

This worked like a charm. I've effortlessly reformatted all 146 pages of text. I can't even tell you how happy I am!! Yay. Thank you! Very Happy Very Happy Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NeoOffice Forum Index -> NeoOffice Releases All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.02 Seconds