Since I only learned this recently, a random tip: If you're copying/pasting from a pdf and it has annoying line breaks, first just copy it all into the url field of a new browser tab, then select what you pasted and copy again. Bam, no more line breaks. If everyone knew this forever I am sorry.