[EMail] Reformatting text to remove line breaks

For any useful advice you want to share, on any subject under the sun.

Moderator: Thought Police

Locked
Kajun
World Controller
World Controller
Posts: 10412
Joined: Tue Jan 22, 2002 12:00 am
Location: Hear.
Contact:

[EMail] Reformatting text to remove line breaks

Post by Kajun »

Welcome to a new forum. 8) I'll start us off with a quick fix for those e-mails that you're copying somewhere else which have line breaks in the middle of sentences, like this:

This is an e-mail sent by myself to
yourself and so in light of this I'd like to
say to you that you are you and I am I
and this is definitely an e-mail, I think.

whereas we'd like it to be:

This is an e-mail sent by myself to yourself and so in light of this I'd like to
say to you that you are you and I am I and this is definitely an e-mail, I think.

How to do this

Copy the text you want to reformat into Word (it's easiest because of the paragraph codes).
Select all the text.
Go to Edit > Replace (Ctrl-H)
Type ^P^P into the Find box.
Type ::foo:: into the Replace box.
Replace All.

(the above step lets us recover any REAL paragraph breaks later on)

Go to Edit > Replace again.
Type ^P into the Find box.
Type nothing into the Replace box (delete whatever's there).
Replace All.

(this step strips the redundant line breaks from the end)

Go to Edit > Replace again.
Type ::foo:: into the Find box.
Type ^P^P into the Replace Box.
Replace All.

(this returns the real paragraph breaks)

And you should be rockin' with a document with naturally flowing text, with paragraph structure retained. Obviously if the text has larger pieces where there are multiple line breaks (i.e. ^P^P^P^P^P), this will be affected. But normally this isn't much of a factor. (::foo:: is used primarily because it doesn't normally occur in documents. You can conjur up anything of your choosing)

Enjoy! :)
Kajun is awaiting approval.
Zathras
Beta-Mandarin
Beta-Mandarin
Posts: 585
Joined: Mon Jan 13, 2003 12:21 am
Location: Oxford/Preston
Contact:

Post by Zathras »

Alternatively use a decent text editor with a rewrap/unwrap function. Textpad uses Ctrl-J/Ctrl-Shift-J respectively.
Blam
Thought Police
Thought Police
Posts: 4969
Joined: Thu Jan 24, 2002 12:00 am

Post by Blam »

Or, just fwd the cunt all fucked up so that you annoy the shite out of folk!! :dg:
Image
MoneyPenny
Alpha (Free)
Alpha (Free)
Posts: 3661
Joined: Thu Mar 14, 2002 12:05 pm
Location: Lost at sea somewhere near Reading
Contact:

Post by MoneyPenny »

Blam wrote:Or, just fwd the cunt all fucked up so that you annoy the shite out of folk!! :dg:
That one sounds the best to be honest
Image
Image
Blam
Thought Police
Thought Police
Posts: 4969
Joined: Thu Jan 24, 2002 12:00 am

Post by Blam »

:P
Image
Zathras
Beta-Mandarin
Beta-Mandarin
Posts: 585
Joined: Mon Jan 13, 2003 12:21 am
Location: Oxford/Preston
Contact:

Post by Zathras »

The Blam computer management course for dummies :D
Blam
Thought Police
Thought Police
Posts: 4969
Joined: Thu Jan 24, 2002 12:00 am

Post by Blam »

:lol: U reckon i could make money?
Image
Charmaka
Alpha (Conditioned)
Alpha (Conditioned)
Posts: 2345
Joined: Sat Mar 16, 2002 7:31 pm
Location: Inside my own head
Contact:

Post by Charmaka »

Doesn't seem to work in word97...
"Why do you hate America so much?"(TM)
Kajun
World Controller
World Controller
Posts: 10412
Joined: Tue Jan 22, 2002 12:00 am
Location: Hear.
Contact:

Post by Kajun »

Really? My mind isn't compatible with Word 97 anyway, so...

I assume it's ^P that's the problem? Try clicking More > Special > Paragraph instead in the Replace box.
Kajun is awaiting approval.
Locked