David

David Welton wrote:

> [ need to remove empty paragraphs from portions of code and text]

Daniel suggested

Try the macro from:
http://www.oooforum.org/forum/viewtopic.phtml?t=6429&highlight=
It works great for cleaning up imported ascii text.

Daniel


The built-in auto-format is what I think of first:
I know this works in OOo 1.9.69 (and likley all other versions)

Warning: 

This will munge code if you select it and apply this. I hope that is 
why Daniel suggested  the macro. 

My solution does not automatically recognize code segments. If 
you have code intersperced with text, you select the text and apply.
With this, you do the task in pieces, 

To setup:
In the Tools menu, click Auto-Correct, there click the Options tab,
in the (what do you call it? dialog) you have several check boxes.
Toward the bottom find and check "remove blank paragraphs."

To do the job:
Then select the just the text you from which you want to remove 
blank paragraphs, the go to the Format menu, click auto-format, 
and click apply.

If you don't like the results, control-z  will undo.
 
David Teague,
Advocating Free Software and
Double Bass tuned in fifths
www.dennismasuzzo.com 
www.silviodallatorre.com
www.joelquarrington.com/ 
For information on Red  Mitchell, see 
http://home.teleport.com/~mimuma/ 
www.larryholloway.com
http://cs.wcu.edu/~dbt 
 


----- Original Message ----- 
From: "David Welton" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, February 16, 2005 12:52 PM
Subject: [users] "fill-paragraph"


> [ CCing a reply to me would be appreciated. Thanks! ]
> 
> Hi,
> 
> I have a bit of a problem.  I've written a portion of a book in emacs,
> mostly because it's what I'm most comfortable working in, so I have a
> large quantity of ascii text, interspersed with examples - source code
> fragments.  Emacs wraps lines at a certain length and ends them with a
> newline.  This has the effect that when I import the text file into
> OO, it thinks each line is a paragraph unto itself, which is a mess.
> 
> How can I fix this?  Without messing up the source code I have in the
> files?  I don't mind doing a bit of manual intervention, but I don't
> want to have to fix up each paragraph by hand by re-attaching each and
> every line.
> 
> I could run a Tcl script on the file to kill newlines where they are
> not two in a row, but that will likely make a hideous mess of the
> examples.
> 
> Thanks for any ideas,
> -- 
> David N. Welton
>  - http://www.dedasys.com/davidw/
> 
> Apache, Linux, Tcl Consulting
>  - http://www.dedasys.com/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to