How do I remove line returns from a large chunk of pasted text?

G

Guest

When citing references, sometimes the copied text contains a hard line return
after each sentence. I am looking for an easy way to remove all the line
returns within a selected area of text. Any suggestions? Thanks.
 
H

Herb Tyson [MVP]

As a general issue, use find/replace. ^p matches hard paragraph returns,
and ^l matches hard intraparagraph returns. Hence, you can use Find/Replace,
replacing ^p or ^l (depending on which kind you're trying to zap) with a
space (to prevent words from being concatenated).

You can select just the text that needs the replacement done, then choose
Find/Replace - Replace All to affect just the selected text, saying "No" to
the offer to continue to the rest of the document.

If this works for you and is a continuing need, you can record a macro then
put the macro on a toolbar or menu, or assign it to a keystroke to automate
the process in the future.
 

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