How to remove line breaks when pasting from Notepad to Word?

N

nomail1983

I want to cut-and-paste text from Notepad into Word. The Notepad text
has manual line breaks so that it fits the window. When I paste into
Word, I want the manual line breaks removed, allowing Word to word-
wrap lines as usual. Ideally, I want Word to recognize paragraphs
(one or more non-blank lines followed by one or more blank lines) and
retain those line breaks.

Is there a way to do that either when I paste or after I paste?

I thought I found Help instructions about that at one time. But
today, I cannot think of a Help search keyphrase that gets me close to
an answer. Sigh.

I am using Office Word 2003 and Windows XP Pro SP2.
 
Z

Zilbandy

I want to cut-and-paste text from Notepad into Word. The Notepad text
has manual line breaks so that it fits the window. When I paste into
Word, I want the manual line breaks removed, allowing Word to word-
wrap lines as usual. Ideally, I want Word to recognize paragraphs
(one or more non-blank lines followed by one or more blank lines) and
retain those line breaks.

One way to deal with this would be to make sure that your Notepad
document has a blank line (extra hard return) after each paragraph.
Then you can follow this set of rules to do what you want in Word:

1. Before going further, BACK UP YOUR ORINGINAL FILE to a different
file name.

2. Open the original document in Word.

3. Using search and replace, replace each hard return with a
character that is not used in the original document. I typically use
the tilde (~) for this.

4. Now, using search and replace, search for two tildes ~~ and
replace with a pair of Paragraph Marks. On my system with Word 97, the
paragraph mark is represented by a ^p in the search / replace
field.

5. Now, search for single ~ and replace with a space.

This should result in a document that has no hard returns except at
the end of a paragraph, and a blank line between paragraphs. From
there, you can format the document as desired.
 
N

nomail1983

The Notepad text has manual line breaks so that it fits the window.

Oops, I mean a normal line/paragraph break (Enter), not a "manual line
break", which has a special meaning in Word (shift-Enter).
 

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