For example, let's say a block of text reads (e.g. on a webpage or a PDF):
Lorem ipsum dolor sit amet,
consectetur adipiscing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
I want to paste it into Word as the following (i.e. I want to remove the line breaks):
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Is this possible? The way I've been doing this is to first paste it into the search bar of Chrome (which removes the line breaks) and then paste it into Word. Is there a better way to do this?