Here is a line of text in code block, with two spaces before, between, and after each word:
Surrounded by double-spaces
And here is the exact same line of text in an inline code block, with curly-quotes outside the code block to make it more obvious:
Surrounded by double-spaces”
The leading and trailing spaces were stripped entirely, and the double-spaces were merged into single-spaces.
I would expect code in backticks should be presented verbatim.