Open link in a new tab

Content

Expand project menu

Line spacing inside code tags

I'm trying to insert code, click the code snippet icon, paste the code, the code is just fine inside the "code snipped insert/change" window (i.e. consecutive line numbers with no blank lines in-between). After clicking "Save" I have a "code box" with double line spacing.

Why does that also happen inside code tags? Isn't the whole point of code tags to not mess with formatting? How can I make code look like it should in Openproject, i.e. like I pasted it and not messed up?