When I paste source code in Google docs document, every line of the source is on a new paragraph. That creates unnatural spacing between lines.
I can manually fix this by tediously removing each paragraph and then inserting new line with Shift+Enter. But is there a way to avoid having bunch of paragraphs for every new line?