4

When I copy text from Notepad and paste it into Microsoft Word (2016) there is an extra line break after every single line.

How do I prevent his from happening?

I found a way to delete all blank lines in a Word document, but that won't help as I need the blank lines that are supposed to be there.

This is not an issue of Microsoft Word using double spacing. There are extra lines.

Turning off word wrap in Notepad didn't change the results (as each line is under 50 characters or so.

Thanks.

6
  • Either create a macro that does it for you or use this website.....textfixer.com/tools/remove-line-breaks.php
    – Moab
    Sep 15, 2019 at 23:16
  • That tool is removing line breaks that I need. There is one kind of line break in the file - manual carriage returns. To end a line, and to create a blank line. That tool is turning multi-lines into one line, and I selected "remove line breaks only." --- There should be a paste-special option in word to deal with this. Isn't there an easy way to fix this?
    – JasonG
    Sep 15, 2019 at 23:37
  • I've been copying and pasting notepad into Word for years without any problems. Perhaps what you're experiencing is Word's "spacing after" setting in the Paragraphs section. I set mine to 0 saved at "Normal.dotx". If I need the double space, it's easy enough to do manually.
    – BillDOe
    Sep 16, 2019 at 0:19
  • I've never noticed this problem before. I haven't changed any Normal.dotx settings, and I am pasting into a blank document.
    – JasonG
    Sep 16, 2019 at 2:19
  • On Options > Display, in the Always show these formatting marks section, turn them all on and make sure what you're actually seeing in Word. Sep 23, 2019 at 19:10

3 Answers 3

9

This happens because Word adds spacing after each paragraph, and it considers each pasted line a new paragraph.

Select all text (e.g. Control-A), right-click the selected text, then select Paragraph. Check the box "Don't add space between paragraphs of the same style".

0

File > Options > Advanced > Cut and Paste and then click on a button that shows even more advanced options in a little window (I am not sure what this is called since my MS Word is Japanese) and in that remove the check on the Adjust space between paragraphs which is the second checkbox I think.

I have also removed the first one since Word was adding in spaces between words (even if they were file addresses such as C:/TEMP/folder or whatever).

I tried Don't add space between paragraphs of the same style but it was already checked.

0

There are 2 options:

Option 1: Using MS Word, after pasting

  1. Paste your text
  2. Open the "Find and Replace" dialog by pressing Ctrl + H
    In the "Find what" box type ^p
    In the "Preplace by" box type ^l
  3. Use the "Find next" and "Replace" buttons, or the "Replace All" button to convert the paragraph endings ("extra line breaks") into normal line endings.

Attention: Using the "Replace All" button will turn all your parapgrah endings into simple line endings, not just those in the text you've just pasted.

Option 2: Copy the text already with the correct line endings

The reason why MS Word displays the line feeds from your pasted text as paragraph endings is that they are encoded as CR LF ("Carriage return", "Line feed"). To have MS word interpret them as simple line feeds they would have to be encoded just as "Line feed" (LF). Some more advanced editors let you choose what line ending you want to use. E.g. in the Visual Studio Code editor you can toggle between CRLF and LF line endings (right-hand side in status bar). To leverage that feature

  1. In Visual Studo Code set the end of line sequence to just LF
  2. Select and copy the text
  3. Paste it in MS Word
  4. In case it applied any formatting (font, colour), set it to what you want, e.g. using Word's Format Painter tool

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .