Stripping out hard returns

J

Jeff

I need to copy and paste a whole load of text prepared by someone else. When
entering it in their original document they have pressed the 'enter' key at
the end of every line, which of course gets pasted in to my document.

Is there a way to easily remove all the hard returns, so that the line
length is determined by my document - other than by going through the whole
(very long!) document and removing them one by one.

Thanks!
 
J

JohnR

One Way is-------
Sure, go to search and replace.
1.First search for ^p^p, (that's 2 paragraph markers) assuming he/she left a
space between paragraphs, and replace with zzxxyy.
That'll keep the integrity of the paragraphs.
2.search for ^p and replace with a space.
3. Search for zzxxyy and replace with ^p^p, that puts the paragraphs back
VOILA !

John
 
J

JohnR

Line 1 should read 1.First search for ^p^p, (that's 2 paragraph markers) assuming he/she left a
LINE between paragraphs, and replace with zzxxyy.
 
J

Jeff

Fantastic, worked a treat John, many thanks!

Line 1 should read 1.First search for ^p^p, (that's 2 paragraph markers)
assuming he/she left a
LINE between paragraphs, and replace with zzxxyy.
 
J

Jeff

Fantastic, worked a treat John, many thanks!

Line 1 should read 1.First search for ^p^p, (that's 2 paragraph markers)
assuming he/she left a
LINE between paragraphs, and replace with zzxxyy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top