When I select code that is indented and spaced as I want, then copy and paste it into a confluence code block, the text ends up with all the indentation and extra lines removed.
This makes the code more difficult to read. Is there anyway to prevent this from happening?