When you copy text from the DOSBox-X screen, DOSBox-X puts a CR (Carriage Return) at the end of each line of text, which is why you get that result in Google Docs. If you want an option NOT to add a CR at the end of the line, you�ll have to go to the DOSBox-X GitHub site, create a GitHub account for yourself if you don�t have one, and post a feature request. I have no idea whether Wengier and the other developers will be able to do this, or when.