codeblock whitespace removed by pub compare

When using the compare feature for publishing, changed codeblocks have the whitespace normalized. This is evident in the topic file that lands in the compare/workset directory. Has anyone seen this? Is there a workaround or preventative measure to avoid this?

This is KC CM 12.0.3725.3