Microsoft KB Archive/63778

Word: Deleting Line Breaks from a Text File

PSS ID Number: Q63778 Article last modified on 11-02-1994

5.00

MS-DOS

= SUMMARY =

The following procedure describes how to delete the paragraph marks at the end of each line while maintaining normal paragraph breaks within an ASCII file.

This procedure changes all the intended paragraph breaks to special characters (') and then deletes all of the remaining paragraph marks, which are actually line breaks. Finally, all the special characters (') are changed back to paragraph breaks.


 * 1) With the cursor at the top of the file, go into the Replace menu.
 * 2) Type pp (^ = SHIFT+6) in the Replace “text:” field, and type a special character sequence, such as ***, in the Replace “with text:” field.
 * 3) Set the Replace “confirm:” field to No and press ENTER.
 * 4) With the cursor at the top of the document, enter the Replace menu and type ^p in the “text:” field.
 * 5) The Replace “with text:” field either should be blank or contain a single space, depending on whether there is a space before or after each end-of-line paragraph mark.
 * 6) Set the Replace “confirm:” field to No and press ENTER.
 * 7) With the cursor at the top of the file, return to the Replace menu.
 * 8) In the Replace “text:” field, type the unique character sequence used in Step 2 (that is, ***).
 * 9) In the Replace “with text:” field, type ^p.
 * 10) Set the Replace “confirm:” field to No and press ENTER.

Note: See Pages 171-172 of the “Using Microsoft Word” manual for more information.

KBCategory: kbother KBSubcategory: Additional reference words:

=
================================================================ Copyright Microsoft Corporation 1994.