Whenever I copy a line or a word at the end of a line and then paste, it includes a newline.
Is there anyway to prevent this behavior? I don't want it to copy or paste the newline.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
End your selection at the end of the word, not the end of the line.
The newline character gets selected as any other character would. The trailing space in a selection indicates the selection includes the newline.
To see the difference, "show paragraph marks and other hidden formatting symbols" by either clicking the ¶ toolbar button on the Home ribbon (Paragraph section) or press Ctrl+*.
I often find it quicker to make the selection with the mouse. If I see the extra space at the end of the selection, I press Shift+Left Arrow to shorten the selection by one character: the newline.
Note: You may have some success modifying the following "Editing options" under File (menu), Options, Advanced (left sidebar section):