Copy and paste content from a writer doc into the same doc creates pages of code pasted in

Copy and paste content from a writer doc into the same doc creates pages of code pasted in

Just a single line of content copied and pasted creates a huge doc of code jibberish.